Type alias HttpRequest

HttpRequest: {
    url: string;
    body?: Uint8Array[] | AsyncIterableIterator<Uint8Array>;
    headers?: HttpHeaders;
    method?: string;
    onProgress?: ProgressCallback;
}

Type declaration

  • url: string

    The URL to request.

  • Optional body?: Uint8Array[] | AsyncIterableIterator<Uint8Array>

    An async iterator of Uint8Arrays or array that make up the body of POST requests.

  • Optional headers?: HttpHeaders

    Headers to include in the HTTP request.

  • Optional method?: string

    The HTTP method to use.

  • Optional onProgress?: ProgressCallback

    Reserved for future use (emitting ProgressEvents).

Generated using TypeDoc