@grabjs/superapp-sdk
    Preparing search index...

    Type Alias SendRequest

    Request parameters for sending a network request.

    type SendRequest = {
        body?: unknown;
        endpoint: string;
        headers?: Record<string, string>;
        method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH" | "HEAD" | "OPTIONS";
        query?: Record<string, string>;
        timeout?: number;
    }
    Index

    Properties

    body?: unknown

    Request payload body.

    endpoint: string

    Request endpoint URL.

    headers?: Record<string, string>

    HTTP headers sent with the request.

    method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH" | "HEAD" | "OPTIONS"

    HTTP method used for the request (for example, "GET" or "POST").

    query?: Record<string, string>

    Query parameters appended to the request URL.

    timeout?: number

    Request timeout in milliseconds.