GotScrapingHttpClient
Implements
Index
Constructors
Methods
Constructors
constructor
Returns GotScrapingHttpClient
Methods
sendRequest
Perform an HTTP Request and return the complete response.
Type parameters
- TResponseType: keyof ResponseTypes
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>
optionalhandleRedirect: RedirectHandler
Returns Promise<StreamingHttpResponse>
A HTTP client implementation based on the
got-scraping
library.