foo-webview-sdk
    Preparing search index...

    Interface HttpGetParams

    Parameters for http.get. Send a GET request. By default the call returns a receipt at once and the response arrives as http:response carrying the same requestId; with async: false the host blocks until the response is in and returns it. Requests to a local or private network address fail with PERMISSION_DENIED unless the host setting allows them, checked again at every redirect.

    interface HttpGetParams {
        async?: boolean;
        headers?: Record<string, string>;
        insecureTls?: boolean;
        redirect?: "error" | "manual" | "follow";
        responseType?: "text" | "arraybuffer" | "base64" | "binary";
        timeout?: number;
        url: string;
    }
    Index
    async?: boolean

    Return a receipt at once and deliver the response as http:response; false blocks until the response is in.

    true
    
    headers?: Record<string, string>

    Custom request headers. User-Agent overrides the host default on the initial request. A header whose name or value contains a line break is dropped. Custom headers are omitted after a redirect, including User-Agent, so redirected requests use the host default.

    insecureTls?: boolean

    Accept invalid or self-signed certificates; takes effect only when the host setting allows insecure TLS as well.

    false
    
    redirect?: "error" | "manual" | "follow"

    follow follows up to 10 redirects; error fails with OPERATION_FAILED on a redirect; manual returns the redirect response as it is.

    "follow"
    
    responseType?: "text" | "arraybuffer" | "base64" | "binary"

    text returns the body as text; base64, and its spellings arraybuffer and binary, return it Base64-encoded.

    "text"
    
    timeout?: number

    Timeout in milliseconds for resolving, connecting, sending and receiving each; 0 or less keeps the WinHTTP defaults.

    30000
    
    url: string

    Request URL; only http and https are allowed.