- makeJsonRequest(token: string, method: string, url: URL, body?: string | FormData, logger?: ((...thing: any) => void), httpTimeout?: number): Promise<{
bodyAsJson: unknown;
response: Response;
}>
-
Parameters
-
token: string
-
method: string
-
url: URL
-
Optional
body: string | FormData
-
Optional
logger: ((...thing: any) => void)
-
- (...thing: any): void
-
Returns void
-
httpTimeout: number = 15000
Returns Promise<{
bodyAsJson: unknown;
response: Response;
}>