Request.functions.getMode
Function: getMode()
Section titled “Function: getMode()”getMode(
self):RequestMode|undefined
Defined in: packages/fx-fetch/src/Request/getMode.ts:18
Gets the request mode.
Parameters
Section titled “Parameters”Returns
Section titled “Returns”RequestMode | undefined
Example
Section titled “Example”import { Request } from 'fx-fetch';
const request = Request.make({ url: 'https://api.example.com', mode: 'cors' });const mode = Request.getMode(request);console.log(mode); // 'cors'0.1.0