Taquito TypeDocs
    Preparing search index...

    Interface HttpRequestOptions

    interface HttpRequestOptions {
        headers?: { [key: string]: string };
        json?: boolean;
        method?: "GET" | "POST";
        query?: ObjectType;
        timeout?: number;
        url: string;
    }
    Index

    Properties

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

    HTTP headers. Content-Type: application/json is set by default if not provided.

    json?: boolean

    Parse the response as JSON. When false, returns raw text. Defaults to true.

    method?: "GET" | "POST"

    HTTP method. Defaults to 'GET'.

    query?: ObjectType

    Query parameters appended to the URL as a query string.

    timeout?: number

    Per-request timeout in milliseconds. Defaults to the backend's constructor value (30 000 ms).

    url: string

    RPC endpoint URL.