Skip to content

Request

Values

arrayBuffer

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

Parameters

WebAPI.FetchAPI.request

Return type

Promise.t< ArrayBuffer.t >

blob

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

Parameters

WebAPI.FetchAPI.request

Return type

Promise.t< WebAPI.FileAPI.blob >

bytes

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

Parameters

WebAPI.FetchAPI.request

Return type

Promise.t< array< int > >

clone

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

formData

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

Parameters

WebAPI.FetchAPI.request

Return type

Promise.t< WebAPI.FetchAPI.formData >

json

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

Parameters

WebAPI.FetchAPI.request

Return type

Promise.t< JSON.t >

make

let make: (
~input: WebAPI.FetchAPI.request,
~init: WebAPI.FetchAPI.requestInit=?,
) => WebAPI.FetchAPI.request

make2

let make2: (
~input: string,
~init: WebAPI.FetchAPI.requestInit=?,
) => WebAPI.FetchAPI.request

Parameters

string option< WebAPI.FetchAPI.requestInit >

Return type

WebAPI.FetchAPI.request

text

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

Parameters

WebAPI.FetchAPI.request

Return type

Promise.t< string >