FetchHttpClient
Hierarchy
- BaseHttpClient
- FetchHttpClient
Index
Constructors
Methods
Constructors
constructor
Parameters
optionaloptions: { logger?: CrawleeLogger }
optionallogger: CrawleeLogger
Returns FetchHttpClient
Methods
fetch
Perform the raw network request and return a single Response without any automatic redirect following or special error handling.
Parameters
request: Request
optionaloptions: RequestInit & CustomFetchOptions
Returns Promise<Response>
inheritedsendRequest
Public fetch-like method that handles redirects and uses provided proxy and cookie jar.
Parameters
initialRequest: Request
optionaloptions: SendRequestOptions
Returns Promise<Response>
A HTTP client implementation using the native
fetchAPI.This implementation does not support proxying.