Interface MakeHttpCallAOptions

The options type for makeHttpCallA.

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

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: "same-origin" | "cors" | "no-cors"