Package org.w3c.fetch
Kotlin JavaScript wrappers for the W3C fetch API.
Types
RequestCache
interface RequestCacheRequestCredentials
interface RequestCredentialsRequestDestination
interface RequestDestinationRequestInit
interface RequestInitRequestMode
interface RequestModeRequestRedirect
interface RequestRedirectRequestType
interface RequestTypeResponseInit
interface ResponseInitResponseType
interface ResponseTypeFunctions
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
): RequestInitResponseInit
fun ResponseInit(
status: Short? = 200,
statusText: String? = "OK",
headers: dynamic = undefined
): ResponseInitCompanion Object Properties
AUDIO
val RequestType.Companion.AUDIO: RequestTypeBASIC
val ResponseType.Companion.BASIC: ResponseTypeCORS
val RequestMode.Companion.CORS: RequestModeval ResponseType.Companion.CORS: ResponseTypeDEFAULT
val RequestCache.Companion.DEFAULT: RequestCacheval ResponseType.Companion.DEFAULT: ResponseTypeDOCUMENT
val RequestDestination.Companion.DOCUMENT: RequestDestinationEMBED
val RequestDestination.Companion.EMBED: RequestDestinationEMPTY
val RequestType.Companion.EMPTY: RequestTypeval RequestDestination.Companion.EMPTY: RequestDestinationERROR
val RequestRedirect.Companion.ERROR: RequestRedirectval ResponseType.Companion.ERROR: ResponseTypeFOLLOW
val RequestRedirect.Companion.FOLLOW: RequestRedirectFONT
val RequestType.Companion.FONT: RequestTypeval RequestDestination.Companion.FONT: RequestDestinationFORCE_CACHE
val RequestCache.Companion.FORCE_CACHE: RequestCacheIMAGE
val RequestType.Companion.IMAGE: RequestTypeval RequestDestination.Companion.IMAGE: RequestDestinationINCLUDE
val RequestCredentials.Companion.INCLUDE: RequestCredentialsMANIFEST
val RequestDestination.Companion.MANIFEST: RequestDestinationMANUAL
val RequestRedirect.Companion.MANUAL: RequestRedirectMEDIA
val RequestDestination.Companion.MEDIA: RequestDestinationNAVIGATE
val RequestMode.Companion.NAVIGATE: RequestModeNO_CACHE
val RequestCache.Companion.NO_CACHE: RequestCacheNO_CORS
val RequestMode.Companion.NO_CORS: RequestModeNO_STORE
val RequestCache.Companion.NO_STORE: RequestCacheOBJECT
val RequestDestination.Companion.OBJECT: RequestDestinationOMIT
val RequestCredentials.Companion.OMIT: RequestCredentialsONLY_IF_CACHED
val RequestCache.Companion.ONLY_IF_CACHED: RequestCacheOPAQUE
val ResponseType.Companion.OPAQUE: ResponseTypeOPAQUEREDIRECT
val ResponseType.Companion.OPAQUEREDIRECT: ResponseTypeRELOAD
val RequestCache.Companion.RELOAD: RequestCacheREPORT
val RequestDestination.Companion.REPORT: RequestDestinationSAME_ORIGIN
val RequestMode.Companion.SAME_ORIGIN: RequestModeval RequestCredentials.Companion.SAME_ORIGIN: RequestCredentialsSCRIPT
val RequestType.Companion.SCRIPT: RequestTypeval RequestDestination.Companion.SCRIPT: RequestDestinationSERVICEWORKER
val RequestDestination.Companion.SERVICEWORKER: RequestDestinationSHAREDWORKER
val RequestDestination.Companion.SHAREDWORKER: RequestDestinationSTYLE
val RequestType.Companion.STYLE: RequestTypeval RequestDestination.Companion.STYLE: RequestDestinationTRACK
val RequestType.Companion.TRACK: RequestTypeVIDEO
val RequestType.Companion.VIDEO: RequestTypeWORKER
val RequestDestination.Companion.WORKER: RequestDestinationXSLT
val RequestDestination.Companion.XSLT: RequestDestination