abstractBaseHttpClient
Hierarchy
- BaseHttpClient
Implements
Index
Constructors
Methods
Constructors
constructor
Parameters
optionaloptions: { logger?: CrawleeLogger }
optionallogger: CrawleeLogger
Returns BaseHttpClient
Methods
sendRequest
Public fetch-like method that handles redirects and uses provided proxy and cookie jar.
Parameters
initialRequest: Request
optionaloptions: SendRequestOptions
Returns Promise<Response>
Base HTTP client that provides fetch-like
sendRequestwith Crawlee-managed behaviors (redirect handling, proxy and cookie handling). Concrete clients implement only the low-level network call infetch.