Function makeJsonRequest

  • Parameters

    • token: string
    • method: string
    • url: URL
    • Optional body: string | FormData
    • Optional logger: ((...thing: any) => void)
        • (...thing: any): void
        • Parameters

          • Rest ...thing: any

          Returns void

    • httpTimeout: number = 15000

    Returns Promise<{
        bodyAsJson: unknown;
        response: Response;
    }>