Options for sending a request message.

interface SendOptions {
    gzipThreshold?: number;
    headers?: { [key: string]: string };
    method: string;
    signal?: AbortSignal;
}

Properties

gzipThreshold?: number

When specified, message body larger than the treshold is gzipped

headers?: { [key: string]: string }

Request HTTP headers.

method: string

HTTP method (POST, PUT, GET, PATCH ...)

signal?: AbortSignal

Abort signal