PowerKeys Scripting API
    Preparing search index...

    Interface HttpRequestOptions

    Options for one HTTP.SendRequest or HTTP.RequestJson call.

    interface HttpRequestOptions {
        url: string;
        method?: HttpMethod;
        headers?: Record<string, string>;
        body?: string;
        timeoutMs?: number;
    }
    Index
    url: string

    Absolute http or https URL, limited to 8 KiB. URLs containing userinfo are rejected.

    method?: HttpMethod

    HTTP method. Defaults to GET.

    headers?: Record<string, string>

    Request headers. Names are case-insensitive and client-owned framing headers are rejected.

    body?: string

    Optional request body string.

    timeoutMs?: number

    Total request timeout in integer milliseconds (100-120000). Defaults to 30000.