Skip to content

Function: fetch_with_options() ​

fetch_with_options(url, method, headers, body?): Promise<any>

Defined in: api/rust-fetch.d.ts:1009

Fetch with a method, headers and an optional string body.

Resolves to { status, statusText, ok, url, headers, body }.

Parameters ​

url ​

string

method ​

string

headers ​

any

body? ​

string | null

Returns ​

Promise<any>

Released under the MIT or Apache-2.0 license.