Response

open external class Response(body: BodyInit? = definedExternally, init: ResponseInit = definedExternally) : Body(source)

This Fetch API interface represents the response to a request.

MDN Reference

Constructors

Link copied to clipboard
constructor(body: BodyInit? = definedExternally, init: ResponseInit = definedExternally)

Types

Link copied to clipboard
object Companion

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

Functions

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open suspend fun blob(): Blob
Link copied to clipboard
open fun blobAsync(): Promise<Blob>
Link copied to clipboard
open suspend fun bytes(): Uint8Array<*>
Link copied to clipboard
open fun bytesAsync(): Promise<Uint8Array<*>>
Link copied to clipboard
Link copied to clipboard
open suspend fun formData(): FormData
Link copied to clipboard
Link copied to clipboard
open suspend fun json(): Any?
Link copied to clipboard
open fun jsonAsync(): Promise<*>
Link copied to clipboard
open suspend fun text(): String
Link copied to clipboard
open fun textAsync(): Promise<String>