Interface fetchOptions

Represents options for making HTTP requests.

interface fetchOptions {
    additionalDecode?: boolean;
    body?: any;
    cookies?: Record<string, any>;
    headers?: OutgoingHttpHeaders;
    method?: Methods;
    options?: SessionOptions;
    proxy?: string;
    redirect?: boolean;
}

Properties

additionalDecode?: boolean

Whether to perform additional decoding.

body?: any

The body of the request.

cookies?: Record<string, any>

Cookies for the request.

headers?: OutgoingHttpHeaders

The headers for the request.

method?: Methods

Request method.

options?: SessionOptions

Additional session options.

proxy?: string

The proxy server to use for the request.

redirect?: boolean

Whether to follow redirects.