Skip to content

Request

Values

arrayBuffer

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

Parameters

WebAPI.FetchAPI.request

Return type

promise< ArrayBuffer.t >

blob

let blob: WebAPI.FetchAPI.request => promise<WebAPI.FileAPI.blob>

Parameters

WebAPI.FetchAPI.request

Return type

promise< WebAPI.FileAPI.blob >

bytes

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

Parameters

WebAPI.FetchAPI.request

Return type

promise< array< int > >

clone

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

formData

let formData: WebAPI.FetchAPI.request => promise<WebAPI.FetchAPI.formData>

Parameters

WebAPI.FetchAPI.request

Return type

promise< WebAPI.FetchAPI.formData >

json

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

Parameters

WebAPI.FetchAPI.request

Return type

promise< 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<string>

Parameters

WebAPI.FetchAPI.request

Return type

promise< string >