Type Alias HTTPFetchOptions

HTTPFetchOptions: {
    body?: HTTPFetchBody;
    headers?: Record<string, string>;
    method?: string;
    qs?: Record<string, unknown>;
    req?: Request;
}

The options for a request.

Type declaration

  • Optionalbody?: HTTPFetchBody

    The body of the request.

  • Optionalheaders?: Record<string, string>

    The headers dictionary.

  • Optionalmethod?: string

    The HTTP method.

    'GET'
    
  • Optionalqs?: Record<string, unknown>

    A dictionary of query string parameters.

  • Optionalreq?: Request

    A request object generated by the application. This can be used to copy information like custom headers or the IP (for the X-Forwarded-For header).