Kotlin Wrappers API Reference
Toggle table of contents
common
Platform filter
common
Switch theme
kotlin-web
/
web.http
/
Response
Response
open
class
Response
(
body
:
BodyInit
?
=
definedExternally
,
init
:
ResponseInit
=
definedExternally
)
:
Body
(
source
)
This Fetch API interface represents the response to a request.
MDN Reference
Members
Constructors
Response
Link copied to clipboard
constructor
(
body
:
BodyInit
?
=
definedExternally
,
init
:
ResponseInit
=
definedExternally
)
Types
Companion
Link copied to clipboard
object
Companion
Properties
body
Link copied to clipboard
open
val
body
:
ReadableStream
<
Uint8Array
<
*
>
>
?
MDN Reference
body
Used
Link copied to clipboard
open
val
bodyUsed
:
Boolean
MDN Reference
headers
Link copied to clipboard
val
headers
:
Headers
MDN Reference
ok
Link copied to clipboard
val
ok
:
Boolean
MDN Reference
redirected
Link copied to clipboard
val
redirected
:
Boolean
MDN Reference
status
Link copied to clipboard
val
status
:
Short
MDN Reference
status
Text
Link copied to clipboard
val
statusText
:
String
MDN Reference
type
Link copied to clipboard
val
type
:
ResponseType
MDN Reference
url
Link copied to clipboard
val
url
:
String
MDN Reference
Functions
array
Buffer
Link copied to clipboard
open
suspend
fun
arrayBuffer
(
)
:
ArrayBuffer
MDN Reference
array
Buffer
Async
Link copied to clipboard
open
fun
arrayBufferAsync
(
)
:
Promise
<
ArrayBuffer
>
blob
Link copied to clipboard
open
suspend
fun
blob
(
)
:
Blob
MDN Reference
blob
Async
Link copied to clipboard
open
fun
blobAsync
(
)
:
Promise
<
Blob
>
bytes
Link copied to clipboard
open
suspend
fun
bytes
(
)
:
Uint8Array
<
*
>
MDN Reference
bytes
Async
Link copied to clipboard
open
fun
bytesAsync
(
)
:
Promise
<
Uint8Array
<
*
>
>
clone
Link copied to clipboard
fun
clone
(
)
:
Response
MDN Reference
form
Data
Link copied to clipboard
open
suspend
fun
formData
(
)
:
FormData
MDN Reference
form
Data
Async
Link copied to clipboard
open
fun
formDataAsync
(
)
:
Promise
<
FormData
>
json
Link copied to clipboard
open
suspend
fun
json
(
)
:
JsAny
?
MDN Reference
json
Async
Link copied to clipboard
open
fun
jsonAsync
(
)
:
Promise
<
*
>
text
Link copied to clipboard
open
suspend
fun
text
(
)
:
String
MDN Reference
text
Async
Link copied to clipboard
open
fun
textAsync
(
)
:
Promise
<
JsString
>