• Parameters

    • request: Request

      The request object

    Returns Promise<
        {
            method: string;
            headers: RequestHeaders;
            body: undefined
            | Blob;
            mode: RequestMode;
            credentials: RequestCredentials;
            cache: RequestCache;
            redirect: RequestRedirect;
            referrer: string;
            integrity: string;
        },
    >

    • The options object for the request

    generateOptions - Generate the options for a fetch request Unit testing this can't currently be done without adding Request to Jest's globals. It may not be worth the effort to do so, as this function is very simple. Plus, getRequestBodyBlob is already tested in shared/network/src/utilities.test.ts, and getRequestHeaders is already tested in shared/network/src/utilities.test.ts.