Skip to content

Response

Values

arrayBuffer

let arrayBuffer: WebAPI.FetchAPI.response => Promise.t<ArrayBuffer.t>

Parameters

WebAPI.FetchAPI.response

Return type

Promise.t< ArrayBuffer.t >

blob

let blob: WebAPI.FetchAPI.response => Promise.t<WebAPI.FileAPI.blob>

Parameters

WebAPI.FetchAPI.response

Return type

Promise.t< WebAPI.FileAPI.blob >

bytes

let bytes: WebAPI.FetchAPI.response => Promise.t<array<int>>

Parameters

WebAPI.FetchAPI.response

Return type

Promise.t< array< int > >

clone

let clone: WebAPI.FetchAPI.response => WebAPI.FetchAPI.response

error

let error: unit => WebAPI.FetchAPI.response

Parameters

unit

Return type

WebAPI.FetchAPI.response

formData

let formData: WebAPI.FetchAPI.response => Promise.t<
WebAPI.FetchAPI.formData,
>

Parameters

WebAPI.FetchAPI.response

Return type

Promise.t< WebAPI.FetchAPI.formData >

json

let json: WebAPI.FetchAPI.response => Promise.t<JSON.t>

Parameters

WebAPI.FetchAPI.response

Return type

Promise.t< JSON.t >

jsonR

let jsonR: (
~data: JSON.t,
~init: WebAPI.FetchAPI.responseInit=?,
) => WebAPI.FetchAPI.response

Parameters

JSON.t option< WebAPI.FetchAPI.responseInit >

Return type

WebAPI.FetchAPI.response

make

let make: (
~body: WebAPI.FileAPI.readableStream<unit>=?,
~init: WebAPI.FetchAPI.responseInit=?,
) => WebAPI.FetchAPI.response

Parameters

option< WebAPI.FileAPI.readableStream< unit > > option< WebAPI.FetchAPI.responseInit >

Return type

WebAPI.FetchAPI.response

make2

let make2: (
~body: WebAPI.FileAPI.blob=?,
~init: WebAPI.FetchAPI.responseInit=?,
) => WebAPI.FetchAPI.response

make3

let make3: (
~body: DataView.t=?,
~init: WebAPI.FetchAPI.responseInit=?,
) => WebAPI.FetchAPI.response

Parameters

option< DataView.t > option< WebAPI.FetchAPI.responseInit >

Return type

WebAPI.FetchAPI.response

make4

let make4: (
~body: ArrayBuffer.t=?,
~init: WebAPI.FetchAPI.responseInit=?,
) => WebAPI.FetchAPI.response

Parameters

option< ArrayBuffer.t > option< WebAPI.FetchAPI.responseInit >

Return type

WebAPI.FetchAPI.response

make5

let make5: (
~body: WebAPI.FetchAPI.formData=?,
~init: WebAPI.FetchAPI.responseInit=?,
) => WebAPI.FetchAPI.response

make6

let make6: (
~body: WebAPI.FetchAPI.urlSearchParams=?,
~init: WebAPI.FetchAPI.responseInit=?,
) => WebAPI.FetchAPI.response

make7

let make7: (
~body: string=?,
~init: WebAPI.FetchAPI.responseInit=?,
) => WebAPI.FetchAPI.response

Parameters

option< string > option< WebAPI.FetchAPI.responseInit >

Return type

WebAPI.FetchAPI.response

redirect

let redirect: (~url: string, ~status: int=?) => WebAPI.FetchAPI.response

Parameters

string option< int >

Return type

WebAPI.FetchAPI.response

text

let text: WebAPI.FetchAPI.response => Promise.t<string>

Parameters

WebAPI.FetchAPI.response

Return type

Promise.t< string >