BaseHttpClient
Implemented by
Index
Methods
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>
optionalonRedirect: RedirectHandler
Returns Promise<StreamingHttpResponse>
Interface for user-defined HTTP clients to be used for plain HTTP crawling and for sending additional requests during a crawl.