Interface MakeHttpCallAOptions

The options type for makeHttpCallA.

interface MakeHttpCallAOptions {
    url: string;
    method: string;
    headers: Record<string, string>;
    body: string | Blob | FormData;
    mode: "cors" | "no-cors" | "same-origin";
}

Properties

url: string
method: string

e.g. GET, POST, PUT, DELETE

headers: Record<string, string>

e.g. { 'Authorization': 'Bearer <access token>' }

body: string | Blob | FormData
mode: "cors" | "no-cors" | "same-origin"