ImpitHttpClient
Implements
Index
Constructors
Methods
Constructors
constructor
Parameters
optionaloptions: Omit<ImpitOptions, proxyUrl> & { maxRedirects?: number }
Returns ImpitHttpClient
Methods
sendRequest
Perform an HTTP Request and return the complete response.
Parameters
request: HttpRequest<TResponseType>
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
request: HttpRequest<text>
Returns Promise<StreamingHttpResponse>
A HTTP client implementation based on the `impit library.