- makeHttpCallB(options): Promise<Response>
Parameters
- options: {
url: string;
method: string;
headers: Record<string, string>;
body: string | Blob | FormData;
mode: "same-origin" | "cors" | "no-cors";
}url: string
method: string
headers: Record<string, string>
body: string | Blob | FormData
mode: "same-origin" | "cors" | "no-cors"
Returns Promise<Response>
A function that takes in an options object and makes an HTTP call.
The options type is written directly in the function definition.