- makeHttpCallB(
options: {
url: string;
method: string;
headers: Record<string, string>;
body: string | Blob | FormData;
mode: "cors" | "no-cors" | "same-origin";
},
): Promise<Response> Parameters
- options: {
url: string;
method: string;
headers: Record<string, string>;
body: string | Blob | FormData;
mode: "cors" | "no-cors" | "same-origin";
}url: string
method: string
headers: Record<string, string>
body: string | Blob | FormData
mode: "cors" | "no-cors" | "same-origin"
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.