Package org.w3c.fetch

Kotlin JavaScript wrappers for the W3C fetch API.

Types

JS
1.1

Body

Exposes the JavaScript Body to Kotlin

interface Body
JS
1.1

Headers

Exposes the JavaScript Headers to Kotlin

open class Headers
JS
1.1

Request

Exposes the JavaScript Request to Kotlin

open class Request : Body
JS
1.1

RequestCache

interface RequestCache
JS
1.1

RequestCredentials

interface RequestCredentials
JS
1.1

RequestDestination

interface RequestDestination
JS
1.1

RequestInit

interface RequestInit
JS
1.1

RequestMode

interface RequestMode
JS
1.1

RequestRedirect

interface RequestRedirect
JS
1.1

RequestType

interface RequestType
JS
1.1

Response

Exposes the JavaScript Response to Kotlin

open class Response : Body
JS
1.1

ResponseInit

interface ResponseInit
JS
1.1

ResponseType

interface ResponseType

Functions

JS
1.1

RequestInit

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
JS
1.1

ResponseInit

fun ResponseInit(
    status: Short? = 200,
    statusText: String? = "OK",
    headers: dynamic = undefined
): ResponseInit

Companion Object Properties

JS
1.1

AUDIO

val RequestType.Companion.AUDIO: RequestType
JS
1.1

BASIC

val ResponseType.Companion.BASIC: ResponseType
JS
1.1

CORS

val RequestMode.Companion.CORS: RequestMode
val ResponseType.Companion.CORS: ResponseType
JS
1.1

DEFAULT

val RequestCache.Companion.DEFAULT: RequestCache
val ResponseType.Companion.DEFAULT: ResponseType
JS
1.1

DOCUMENT

val RequestDestination.Companion.DOCUMENT: RequestDestination
JS
1.1

EMBED

val RequestDestination.Companion.EMBED: RequestDestination
JS
1.1

EMPTY

val RequestType.Companion.EMPTY: RequestType
val RequestDestination.Companion.EMPTY: RequestDestination
JS
1.1

ERROR

val RequestRedirect.Companion.ERROR: RequestRedirect
val ResponseType.Companion.ERROR: ResponseType
JS
1.1

FOLLOW

val RequestRedirect.Companion.FOLLOW: RequestRedirect
JS
1.1

FONT

val RequestType.Companion.FONT: RequestType
val RequestDestination.Companion.FONT: RequestDestination
JS
1.1

FORCE_CACHE

val RequestCache.Companion.FORCE_CACHE: RequestCache
JS
1.1

IMAGE

val RequestType.Companion.IMAGE: RequestType
val RequestDestination.Companion.IMAGE: RequestDestination
JS
1.1

INCLUDE

val RequestCredentials.Companion.INCLUDE: RequestCredentials
JS
1.1

MANIFEST

val RequestDestination.Companion.MANIFEST: RequestDestination
JS
1.1

MANUAL

val RequestRedirect.Companion.MANUAL: RequestRedirect
JS
1.1

MEDIA

val RequestDestination.Companion.MEDIA: RequestDestination
JS
1.1

NAVIGATE

val RequestMode.Companion.NAVIGATE: RequestMode
JS
1.1

NO_CACHE

val RequestCache.Companion.NO_CACHE: RequestCache
JS
1.1

NO_CORS

val RequestMode.Companion.NO_CORS: RequestMode
JS
1.1

NO_STORE

val RequestCache.Companion.NO_STORE: RequestCache
JS
1.1

OBJECT

val RequestDestination.Companion.OBJECT: RequestDestination
JS
1.1

OMIT

val RequestCredentials.Companion.OMIT: RequestCredentials
JS
1.1

ONLY_IF_CACHED

val RequestCache.Companion.ONLY_IF_CACHED: RequestCache
JS
1.1

OPAQUE

val ResponseType.Companion.OPAQUE: ResponseType
JS
1.1

OPAQUEREDIRECT

val ResponseType.Companion.OPAQUEREDIRECT: ResponseType
JS
1.1

RELOAD

val RequestCache.Companion.RELOAD: RequestCache
JS
1.1

REPORT

val RequestDestination.Companion.REPORT: RequestDestination
JS
1.1

SAME_ORIGIN

val RequestMode.Companion.SAME_ORIGIN: RequestMode
val RequestCredentials.Companion.SAME_ORIGIN: RequestCredentials
JS
1.1

SCRIPT

val RequestType.Companion.SCRIPT: RequestType
val RequestDestination.Companion.SCRIPT: RequestDestination
JS
1.1

SERVICEWORKER

val RequestDestination.Companion.SERVICEWORKER: RequestDestination
JS
1.1

SHAREDWORKER

val RequestDestination.Companion.SHAREDWORKER: RequestDestination
JS
1.1

STYLE

val RequestType.Companion.STYLE: RequestType
val RequestDestination.Companion.STYLE: RequestDestination
JS
1.1

TRACK

val RequestType.Companion.TRACK: RequestType
JS
1.1

VIDEO

val RequestType.Companion.VIDEO: RequestType
JS
1.1

WORKER

val RequestDestination.Companion.WORKER: RequestDestination
JS
1.1

XSLT

val RequestDestination.Companion.XSLT: RequestDestination