Package org.w3c.fetch

Kotlin JavaScript wrappers for the W3C fetch API.

Types

Body
Link copied to clipboard
JS
external interface Body

Exposes the JavaScript Body to Kotlin

Headers
Link copied to clipboard
JS
open external class Headers(init: dynamic)

Exposes the JavaScript Headers to Kotlin

Request
Link copied to clipboard
JS
open external class Request(input: dynamic, init: RequestInit) : Body

Exposes the JavaScript Request to Kotlin

RequestCache
Link copied to clipboard
JS
external interface RequestCache
RequestCredentials
Link copied to clipboard
JS
external interface RequestCredentials
RequestDestination
Link copied to clipboard
JS
external interface RequestDestination
RequestInit
Link copied to clipboard
JS
external interface RequestInit
RequestMode
Link copied to clipboard
JS
external interface RequestMode
RequestRedirect
Link copied to clipboard
JS
external interface RequestRedirect
RequestType
Link copied to clipboard
JS
external interface RequestType
Response
Link copied to clipboard
JS
open external class Response(body: dynamic, init: ResponseInit) : Body

Exposes the JavaScript Response to Kotlin

ResponseInit
Link copied to clipboard
JS
external interface ResponseInit
ResponseType
Link copied to clipboard
JS
external interface ResponseType

Functions

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

Properties

AUDIO
Link copied to clipboard
JS
val RequestType.Companion.AUDIO: RequestType
BASIC
Link copied to clipboard
JS
val ResponseType.Companion.BASIC: ResponseType
CORS
Link copied to clipboard
JS
val RequestMode.Companion.CORS: RequestMode
CORS
Link copied to clipboard
JS
val ResponseType.Companion.CORS: ResponseType
DEFAULT
Link copied to clipboard
JS
val RequestCache.Companion.DEFAULT: RequestCache
DEFAULT
Link copied to clipboard
JS
val ResponseType.Companion.DEFAULT: ResponseType
DOCUMENT
Link copied to clipboard
JS
EMBED
Link copied to clipboard
JS
val RequestDestination.Companion.EMBED: RequestDestination
EMPTY
Link copied to clipboard
JS
val RequestType.Companion.EMPTY: RequestType
EMPTY
Link copied to clipboard
JS
val RequestDestination.Companion.EMPTY: RequestDestination
ERROR
Link copied to clipboard
JS
val RequestRedirect.Companion.ERROR: RequestRedirect
ERROR
Link copied to clipboard
JS
val ResponseType.Companion.ERROR: ResponseType
FOLLOW
Link copied to clipboard
JS
val RequestRedirect.Companion.FOLLOW: RequestRedirect
FONT
Link copied to clipboard
JS
val RequestType.Companion.FONT: RequestType
FONT
Link copied to clipboard
JS
val RequestDestination.Companion.FONT: RequestDestination
FORCE_CACHE
Link copied to clipboard
JS
val RequestCache.Companion.FORCE_CACHE: RequestCache
IMAGE
Link copied to clipboard
JS
val RequestType.Companion.IMAGE: RequestType
IMAGE
Link copied to clipboard
JS
val RequestDestination.Companion.IMAGE: RequestDestination
INCLUDE
Link copied to clipboard
JS
MANIFEST
Link copied to clipboard
JS
MANUAL
Link copied to clipboard
JS
val RequestRedirect.Companion.MANUAL: RequestRedirect
MEDIA
Link copied to clipboard
JS
val RequestDestination.Companion.MEDIA: RequestDestination
NAVIGATE
Link copied to clipboard
JS
val RequestMode.Companion.NAVIGATE: RequestMode
NO_CACHE
Link copied to clipboard
JS
val RequestCache.Companion.NO_CACHE: RequestCache
NO_CORS
Link copied to clipboard
JS
val RequestMode.Companion.NO_CORS: RequestMode
NO_STORE
Link copied to clipboard
JS
val RequestCache.Companion.NO_STORE: RequestCache
OBJECT
Link copied to clipboard
JS
OMIT
Link copied to clipboard
JS
val RequestCredentials.Companion.OMIT: RequestCredentials
ONLY_IF_CACHED
Link copied to clipboard
JS
val RequestCache.Companion.ONLY_IF_CACHED: RequestCache
OPAQUE
Link copied to clipboard
JS
val ResponseType.Companion.OPAQUE: ResponseType
OPAQUEREDIRECT
Link copied to clipboard
JS
val ResponseType.Companion.OPAQUEREDIRECT: ResponseType
RELOAD
Link copied to clipboard
JS
val RequestCache.Companion.RELOAD: RequestCache
REPORT
Link copied to clipboard
JS
SAME_ORIGIN
Link copied to clipboard
JS
val RequestMode.Companion.SAME_ORIGIN: RequestMode
SAME_ORIGIN
Link copied to clipboard
JS
SCRIPT
Link copied to clipboard
JS
val RequestType.Companion.SCRIPT: RequestType
SCRIPT
Link copied to clipboard
JS
SERVICEWORKER
Link copied to clipboard
SHAREDWORKER
Link copied to clipboard
JS
STYLE
Link copied to clipboard
JS
val RequestType.Companion.STYLE: RequestType
STYLE
Link copied to clipboard
JS
val RequestDestination.Companion.STYLE: RequestDestination
TRACK
Link copied to clipboard
JS
val RequestType.Companion.TRACK: RequestType
VIDEO
Link copied to clipboard
JS
val RequestType.Companion.VIDEO: RequestType
WORKER
Link copied to clipboard
JS
XSLT
Link copied to clipboard
JS
val RequestDestination.Companion.XSLT: RequestDestination