Package-level declarations

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
Link copied to clipboard
open external class Headers(init: dynamic = definedExternally)

Exposes the JavaScript Headers to Kotlin

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

Exposes the JavaScript Request to Kotlin

Since Kotlin 1.1
Link copied to clipboard
external interface RequestCache
Since Kotlin 1.1
Link copied to clipboard
external interface RequestCredentials
Since Kotlin 1.1
Link copied to clipboard
external interface RequestDestination
Since Kotlin 1.1
Link copied to clipboard
external interface RequestInit
Since Kotlin 1.1
Link copied to clipboard
external interface RequestMode
Since Kotlin 1.1
Link copied to clipboard
external interface RequestRedirect
Since Kotlin 1.1
Link copied to clipboard
external interface RequestType
Since Kotlin 1.1
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
Link copied to clipboard
external interface ResponseInit
Since Kotlin 1.1
Link copied to clipboard
external interface ResponseType
Since Kotlin 1.1

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
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
Link copied to clipboard
inline fun ResponseInit(status: Short? = 200, statusText: String? = "OK", headers: dynamic = undefined): ResponseInit
Since Kotlin 1.1