Skip to main content
Version: Next

ImpitHttpClient

A HTTP client implementation based on the `impit library.

Implements

Index

Constructors

Methods

Constructors

constructor

  • Parameters

    • optionaloptions: Omit<ImpitOptions, proxyUrl> & { maxRedirects?: number }

    Returns ImpitHttpClient

Methods

sendRequest

  • sendRequest<TResponseType>(request): Promise<HttpResponse<TResponseType>>
  • Perform an HTTP Request and return the complete response.


    Parameters

    Returns Promise<HttpResponse<TResponseType>>

stream

  • Perform an HTTP Request and return after the response headers are received. The body may be read from a stream contained in the response.


    Parameters

    Returns Promise<StreamingHttpResponse>

Page Options