makeHttpCallB | TypeDoc Example
https://typedoc.org/example/functions/makeHttpCallB.html • 13 KB fetched Open original page
makeHttpCallB | TypeDoc Example
TypeDoc Example
Docs API GitHub
Preparing search index...
* makeHttpCallB
Function makeHttpCallB
*
makeHttpCallB (
options : {
url : string ;
method : string ;
headers : Record < string , string > ;
body : string | Blob | FormData ;
mode : "cors" | "no-cors" | "same-origin" ;
} ,
) : 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.
Parameters
* options : {
url : string ;
method : string ;
headers : Record < string , string > ;
body : string | Blob | FormData ;
mode : "cors" | "no-cors" | "same-origin" ;
}
*
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"
Returns Promise < Response >
* Defined in example/src/functions.ts:78
Settings
Member Visibility
* Protected
* Inherited
* External
Theme OS Light Dark
Docs API GitHub
TypeDoc Example
* Loading...
Generated using TypeDoc
Links found on this page
- TypeDoc Example [direct]
- Docs [direct]
- API [direct]
- GitHub [direct]
- makeHttpCallB [direct]
- example/src/functions.ts:78 [direct]
- TypeDoc Example [direct]
|
|