Package-level declarations

Kotlin JavaScript wrappers for the W3C fetch API.

Kotlin JavaScript wrappers for the W3C fetch API.

Types

Link copied to clipboard
external interface Body

Exposes the JavaScript Body to Kotlin

Since Kotlin 1.1
external interface Body : JsAny

Exposes the JavaScript Body to Kotlin

Since Kotlin 1.8
Link copied to clipboard
open external class Headers(init: dynamic = definedExternally)

Exposes the JavaScript Headers to Kotlin

Since Kotlin 1.1
open external class Headers(init: JsAny? = definedExternally) : JsAny

Exposes the JavaScript Headers to Kotlin

Since Kotlin 1.8
Link copied to clipboard
open external class Request(input: dynamic, init: RequestInit = definedExternally) : Body

Exposes the JavaScript Request to Kotlin

Since Kotlin 1.1
open external class Request(input: JsAny?, init: RequestInit = definedExternally) : Body, JsAny

Exposes the JavaScript Request to Kotlin

Since Kotlin 1.8
Link copied to clipboard
external interface RequestCache
Since Kotlin 1.1
external interface RequestCache : JsAny
Since Kotlin 1.8
Link copied to clipboard
external interface RequestCredentials
Since Kotlin 1.1
external interface RequestCredentials : JsAny
Since Kotlin 1.8
Link copied to clipboard
external interface RequestDestination
Since Kotlin 1.1
external interface RequestDestination : JsAny
Since Kotlin 1.8
Link copied to clipboard
external interface RequestInit
Since Kotlin 1.1
external interface RequestInit : JsAny
Since Kotlin 1.8
Link copied to clipboard
external interface RequestMode
Since Kotlin 1.1
external interface RequestMode : JsAny
Since Kotlin 1.8
Link copied to clipboard
external interface RequestRedirect
Since Kotlin 1.1
external interface RequestRedirect : JsAny
Since Kotlin 1.8
Link copied to clipboard
external interface RequestType
Since Kotlin 1.1
external interface RequestType : JsAny
Since Kotlin 1.8
Link copied to clipboard
open external class Response(body: dynamic = definedExternally, init: ResponseInit = definedExternally) : Body

Exposes the JavaScript Response to Kotlin

Since Kotlin 1.1
open external class Response(body: JsAny? = definedExternally, init: ResponseInit = definedExternally) : Body, JsAny

Exposes the JavaScript Response to Kotlin

Since Kotlin 1.8
Link copied to clipboard
external interface ResponseInit
Since Kotlin 1.1
external interface ResponseInit : JsAny
Since Kotlin 1.8
Link copied to clipboard
external interface ResponseType
Since Kotlin 1.1
external interface ResponseType : JsAny
Since Kotlin 1.8

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
inline fun RequestInit(method: String? = undefined, headers: dynamic = undefined, body: dynamic = undefined, referrer: String? = undefined, referrerPolicy: dynamic = undefined, mode: RequestMode? = undefined, credentials: RequestCredentials? = undefined, cache: RequestCache? = undefined, redirect: RequestRedirect? = undefined, integrity: String? = undefined, keepalive: Boolean? = undefined, window: Any? = undefined): RequestInit
Since Kotlin 1.1
fun RequestInit(method: String? = undefined, headers: JsAny? = undefined, body: JsAny? = undefined, referrer: String? = undefined, referrerPolicy: JsAny? = undefined, mode: RequestMode? = undefined, credentials: RequestCredentials? = undefined, cache: RequestCache? = undefined, redirect: RequestRedirect? = undefined, integrity: String? = undefined, keepalive: Boolean? = undefined, window: JsAny? = undefined): RequestInit
Since Kotlin 1.8
Link copied to clipboard
inline fun ResponseInit(status: Short? = 200, statusText: String? = "OK", headers: dynamic = undefined): ResponseInit
Since Kotlin 1.1
fun ResponseInit(status: Short? = 200, statusText: String? = "OK", headers: JsAny? = undefined): ResponseInit
Since Kotlin 1.8