jmap-kit
    Preparing search index...

    Type Alias TransportRequestOptions

    Options for Transport requests.

    type TransportRequestOptions = {
        body?: string | Blob | ArrayBuffer | File;
        headers?: Headers;
        responseType?: TransportResponseType;
        signal?: AbortSignal;
    }
    Index

    Properties

    body?: string | Blob | ArrayBuffer | File

    The request body (for POST requests only).

    • String: For JSON or text data
    • Blob/File: For binary data like files
    • ArrayBuffer: For raw binary data
    headers?: Headers

    Additional HTTP headers to include in the request.

    responseType?: TransportResponseType

    The expected response type: "json" (default) parses and returns JSON, "blob" returns a Blob (for binary data).

    signal?: AbortSignal

    An AbortSignal to allow aborting the request.