285 lines
10 KiB
Kotlin
285 lines
10 KiB
Kotlin
public val org.w3c.fetch.RequestType.Companion.AUDIO: org.w3c.fetch.RequestType { get; }
|
|
|
|
public val org.w3c.fetch.ResponseType.Companion.BASIC: org.w3c.fetch.ResponseType { get; }
|
|
|
|
public val org.w3c.fetch.RequestMode.Companion.CORS: org.w3c.fetch.RequestMode { get; }
|
|
|
|
public val org.w3c.fetch.ResponseType.Companion.CORS: org.w3c.fetch.ResponseType { get; }
|
|
|
|
public val org.w3c.fetch.RequestCache.Companion.DEFAULT: org.w3c.fetch.RequestCache { get; }
|
|
|
|
public val org.w3c.fetch.ResponseType.Companion.DEFAULT: org.w3c.fetch.ResponseType { get; }
|
|
|
|
public val org.w3c.fetch.RequestDestination.Companion.DOCUMENT: org.w3c.fetch.RequestDestination { get; }
|
|
|
|
public val org.w3c.fetch.RequestDestination.Companion.EMBED: org.w3c.fetch.RequestDestination { get; }
|
|
|
|
public val org.w3c.fetch.RequestDestination.Companion.EMPTY: org.w3c.fetch.RequestDestination { get; }
|
|
|
|
public val org.w3c.fetch.RequestType.Companion.EMPTY: org.w3c.fetch.RequestType { get; }
|
|
|
|
public val org.w3c.fetch.RequestRedirect.Companion.ERROR: org.w3c.fetch.RequestRedirect { get; }
|
|
|
|
public val org.w3c.fetch.ResponseType.Companion.ERROR: org.w3c.fetch.ResponseType { get; }
|
|
|
|
public val org.w3c.fetch.RequestRedirect.Companion.FOLLOW: org.w3c.fetch.RequestRedirect { get; }
|
|
|
|
public val org.w3c.fetch.RequestDestination.Companion.FONT: org.w3c.fetch.RequestDestination { get; }
|
|
|
|
public val org.w3c.fetch.RequestType.Companion.FONT: org.w3c.fetch.RequestType { get; }
|
|
|
|
public val org.w3c.fetch.RequestCache.Companion.FORCE_CACHE: org.w3c.fetch.RequestCache { get; }
|
|
|
|
public val org.w3c.fetch.RequestDestination.Companion.IMAGE: org.w3c.fetch.RequestDestination { get; }
|
|
|
|
public val org.w3c.fetch.RequestType.Companion.IMAGE: org.w3c.fetch.RequestType { get; }
|
|
|
|
public val org.w3c.fetch.RequestCredentials.Companion.INCLUDE: org.w3c.fetch.RequestCredentials { get; }
|
|
|
|
public val org.w3c.fetch.RequestDestination.Companion.MANIFEST: org.w3c.fetch.RequestDestination { get; }
|
|
|
|
public val org.w3c.fetch.RequestRedirect.Companion.MANUAL: org.w3c.fetch.RequestRedirect { get; }
|
|
|
|
public val org.w3c.fetch.RequestDestination.Companion.MEDIA: org.w3c.fetch.RequestDestination { get; }
|
|
|
|
public val org.w3c.fetch.RequestMode.Companion.NAVIGATE: org.w3c.fetch.RequestMode { get; }
|
|
|
|
public val org.w3c.fetch.RequestCache.Companion.NO_CACHE: org.w3c.fetch.RequestCache { get; }
|
|
|
|
public val org.w3c.fetch.RequestMode.Companion.NO_CORS: org.w3c.fetch.RequestMode { get; }
|
|
|
|
public val org.w3c.fetch.RequestCache.Companion.NO_STORE: org.w3c.fetch.RequestCache { get; }
|
|
|
|
public val org.w3c.fetch.RequestDestination.Companion.OBJECT: org.w3c.fetch.RequestDestination { get; }
|
|
|
|
public val org.w3c.fetch.RequestCredentials.Companion.OMIT: org.w3c.fetch.RequestCredentials { get; }
|
|
|
|
public val org.w3c.fetch.RequestCache.Companion.ONLY_IF_CACHED: org.w3c.fetch.RequestCache { get; }
|
|
|
|
public val org.w3c.fetch.ResponseType.Companion.OPAQUE: org.w3c.fetch.ResponseType { get; }
|
|
|
|
public val org.w3c.fetch.ResponseType.Companion.OPAQUEREDIRECT: org.w3c.fetch.ResponseType { get; }
|
|
|
|
public val org.w3c.fetch.RequestCache.Companion.RELOAD: org.w3c.fetch.RequestCache { get; }
|
|
|
|
public val org.w3c.fetch.RequestDestination.Companion.REPORT: org.w3c.fetch.RequestDestination { get; }
|
|
|
|
public val org.w3c.fetch.RequestCredentials.Companion.SAME_ORIGIN: org.w3c.fetch.RequestCredentials { get; }
|
|
|
|
public val org.w3c.fetch.RequestMode.Companion.SAME_ORIGIN: org.w3c.fetch.RequestMode { get; }
|
|
|
|
public val org.w3c.fetch.RequestDestination.Companion.SCRIPT: org.w3c.fetch.RequestDestination { get; }
|
|
|
|
public val org.w3c.fetch.RequestType.Companion.SCRIPT: org.w3c.fetch.RequestType { get; }
|
|
|
|
public val org.w3c.fetch.RequestDestination.Companion.SERVICEWORKER: org.w3c.fetch.RequestDestination { get; }
|
|
|
|
public val org.w3c.fetch.RequestDestination.Companion.SHAREDWORKER: org.w3c.fetch.RequestDestination { get; }
|
|
|
|
public val org.w3c.fetch.RequestDestination.Companion.STYLE: org.w3c.fetch.RequestDestination { get; }
|
|
|
|
public val org.w3c.fetch.RequestType.Companion.STYLE: org.w3c.fetch.RequestType { get; }
|
|
|
|
public val org.w3c.fetch.RequestType.Companion.TRACK: org.w3c.fetch.RequestType { get; }
|
|
|
|
public val org.w3c.fetch.RequestType.Companion.VIDEO: org.w3c.fetch.RequestType { get; }
|
|
|
|
public val org.w3c.fetch.RequestDestination.Companion.WORKER: org.w3c.fetch.RequestDestination { get; }
|
|
|
|
public val org.w3c.fetch.RequestDestination.Companion.XSLT: org.w3c.fetch.RequestDestination { get; }
|
|
|
|
@kotlin.internal.InlineOnly
|
|
public inline fun RequestInit(method: kotlin.String? = ..., headers: dynamic = ..., body: dynamic = ..., referrer: kotlin.String? = ..., referrerPolicy: dynamic = ..., mode: org.w3c.fetch.RequestMode? = ..., credentials: org.w3c.fetch.RequestCredentials? = ..., cache: org.w3c.fetch.RequestCache? = ..., redirect: org.w3c.fetch.RequestRedirect? = ..., integrity: kotlin.String? = ..., keepalive: kotlin.Boolean? = ..., window: kotlin.Any? = ...): org.w3c.fetch.RequestInit
|
|
|
|
@kotlin.internal.InlineOnly
|
|
public inline fun ResponseInit(status: kotlin.Short? = ..., statusText: kotlin.String? = ..., headers: dynamic = ...): org.w3c.fetch.ResponseInit
|
|
|
|
public external interface Body {
|
|
public abstract val bodyUsed: kotlin.Boolean { get; }
|
|
|
|
public abstract fun arrayBuffer(): kotlin.js.Promise<org.khronos.webgl.ArrayBuffer>
|
|
|
|
public abstract fun blob(): kotlin.js.Promise<org.w3c.files.Blob>
|
|
|
|
public abstract fun formData(): kotlin.js.Promise<org.w3c.xhr.FormData>
|
|
|
|
public abstract fun json(): kotlin.js.Promise<kotlin.Any?>
|
|
|
|
public abstract fun text(): kotlin.js.Promise<kotlin.String>
|
|
}
|
|
|
|
public open external class Headers {
|
|
public constructor Headers(init: dynamic = ...)
|
|
|
|
public final fun append(name: kotlin.String, value: kotlin.String): kotlin.Unit
|
|
|
|
public final fun delete(name: kotlin.String): kotlin.Unit
|
|
|
|
public final fun get(name: kotlin.String): kotlin.String?
|
|
|
|
public final fun has(name: kotlin.String): kotlin.Boolean
|
|
|
|
public final fun set(name: kotlin.String, value: kotlin.String): kotlin.Unit
|
|
}
|
|
|
|
public open external class Request : org.w3c.fetch.Body {
|
|
public constructor Request(input: dynamic, init: org.w3c.fetch.RequestInit = ...)
|
|
|
|
public open override val bodyUsed: kotlin.Boolean { get; }
|
|
|
|
public open val cache: org.w3c.fetch.RequestCache { get; }
|
|
|
|
public open val credentials: org.w3c.fetch.RequestCredentials { get; }
|
|
|
|
public open val destination: org.w3c.fetch.RequestDestination { get; }
|
|
|
|
public open val headers: org.w3c.fetch.Headers { get; }
|
|
|
|
public open val integrity: kotlin.String { get; }
|
|
|
|
public open val keepalive: kotlin.Boolean { get; }
|
|
|
|
public open val method: kotlin.String { get; }
|
|
|
|
public open val mode: org.w3c.fetch.RequestMode { get; }
|
|
|
|
public open val redirect: org.w3c.fetch.RequestRedirect { get; }
|
|
|
|
public open val referrer: kotlin.String { get; }
|
|
|
|
public open val referrerPolicy: dynamic { get; }
|
|
|
|
public open val type: org.w3c.fetch.RequestType { get; }
|
|
|
|
public open val url: kotlin.String { get; }
|
|
|
|
public open override fun arrayBuffer(): kotlin.js.Promise<org.khronos.webgl.ArrayBuffer>
|
|
|
|
public open override fun blob(): kotlin.js.Promise<org.w3c.files.Blob>
|
|
|
|
public final fun clone(): org.w3c.fetch.Request
|
|
|
|
public open override fun formData(): kotlin.js.Promise<org.w3c.xhr.FormData>
|
|
|
|
public open override fun json(): kotlin.js.Promise<kotlin.Any?>
|
|
|
|
public open override fun text(): kotlin.js.Promise<kotlin.String>
|
|
}
|
|
|
|
@kotlin.js.JsName(name = "null")
|
|
public external interface RequestCache {
|
|
public companion object of RequestCache {
|
|
}
|
|
}
|
|
|
|
@kotlin.js.JsName(name = "null")
|
|
public external interface RequestCredentials {
|
|
public companion object of RequestCredentials {
|
|
}
|
|
}
|
|
|
|
@kotlin.js.JsName(name = "null")
|
|
public external interface RequestDestination {
|
|
public companion object of RequestDestination {
|
|
}
|
|
}
|
|
|
|
public external interface RequestInit {
|
|
public open var body: dynamic { get; set; }
|
|
|
|
public open var cache: org.w3c.fetch.RequestCache? { get; set; }
|
|
|
|
public open var credentials: org.w3c.fetch.RequestCredentials? { get; set; }
|
|
|
|
public open var headers: dynamic { get; set; }
|
|
|
|
public open var integrity: kotlin.String? { get; set; }
|
|
|
|
public open var keepalive: kotlin.Boolean? { get; set; }
|
|
|
|
public open var method: kotlin.String? { get; set; }
|
|
|
|
public open var mode: org.w3c.fetch.RequestMode? { get; set; }
|
|
|
|
public open var redirect: org.w3c.fetch.RequestRedirect? { get; set; }
|
|
|
|
public open var referrer: kotlin.String? { get; set; }
|
|
|
|
public open var referrerPolicy: dynamic { get; set; }
|
|
|
|
public open var window: kotlin.Any? { get; set; }
|
|
}
|
|
|
|
@kotlin.js.JsName(name = "null")
|
|
public external interface RequestMode {
|
|
public companion object of RequestMode {
|
|
}
|
|
}
|
|
|
|
@kotlin.js.JsName(name = "null")
|
|
public external interface RequestRedirect {
|
|
public companion object of RequestRedirect {
|
|
}
|
|
}
|
|
|
|
@kotlin.js.JsName(name = "null")
|
|
public external interface RequestType {
|
|
public companion object of RequestType {
|
|
}
|
|
}
|
|
|
|
public open external class Response : org.w3c.fetch.Body {
|
|
public constructor Response(body: dynamic = ..., init: org.w3c.fetch.ResponseInit = ...)
|
|
|
|
public open val body: dynamic { get; }
|
|
|
|
public open override val bodyUsed: kotlin.Boolean { get; }
|
|
|
|
public open val headers: org.w3c.fetch.Headers { get; }
|
|
|
|
public open val ok: kotlin.Boolean { get; }
|
|
|
|
public open val redirected: kotlin.Boolean { get; }
|
|
|
|
public open val status: kotlin.Short { get; }
|
|
|
|
public open val statusText: kotlin.String { get; }
|
|
|
|
public open val trailer: kotlin.js.Promise<org.w3c.fetch.Headers> { get; }
|
|
|
|
public open val type: org.w3c.fetch.ResponseType { get; }
|
|
|
|
public open val url: kotlin.String { get; }
|
|
|
|
public open override fun arrayBuffer(): kotlin.js.Promise<org.khronos.webgl.ArrayBuffer>
|
|
|
|
public open override fun blob(): kotlin.js.Promise<org.w3c.files.Blob>
|
|
|
|
public final fun clone(): org.w3c.fetch.Response
|
|
|
|
public open override fun formData(): kotlin.js.Promise<org.w3c.xhr.FormData>
|
|
|
|
public open override fun json(): kotlin.js.Promise<kotlin.Any?>
|
|
|
|
public open override fun text(): kotlin.js.Promise<kotlin.String>
|
|
|
|
public companion object of Response {
|
|
public final fun error(): org.w3c.fetch.Response
|
|
|
|
public final fun redirect(url: kotlin.String, status: kotlin.Short = ...): org.w3c.fetch.Response
|
|
}
|
|
}
|
|
|
|
public external interface ResponseInit {
|
|
public open var headers: dynamic { get; set; }
|
|
|
|
public open var status: kotlin.Short? { get; set; }
|
|
|
|
public open var statusText: kotlin.String? { get; set; }
|
|
}
|
|
|
|
@kotlin.js.JsName(name = "null")
|
|
public external interface ResponseType {
|
|
public companion object of ResponseType {
|
|
}
|
|
} |