HttpClientOptions
Hierarchy
- HttpClientOptions
Index
Properties
optionalcompression
Compression of request bodies: the name of a built-in algorithm, or an HttpCompressor for a custom quality or algorithm.
optionalheaders
Additional headers sent with every request. They win over the built-in defaults.
optionallogger
Logger for the retry warnings. Defaults to a child of the @apify/log default with an ApifyClient prefix.
optionalmaxRetries
How many times a failed request is retried at most.
optionalminDelayBetweenRetriesMillis
Lower bound for the delay before the first retry in milliseconds. It doubles with every further retry.
optionalstats
Statistics the client records its calls into. Created when omitted.
optionaltimeoutLongSecs
Duration of the long timeout tier, in seconds.
optionaltimeoutMaxSecs
Upper bound for the timeout of a single attempt, in seconds.
optionaltimeoutMediumSecs
Duration of the medium timeout tier, in seconds.
optionaltimeoutShortSecs
Duration of the short timeout tier, in seconds.
optionaltoken
Apify API token, sent as a Bearer token in the Authorization header.
optionalworkflowKey
Value of the X-Apify-Workflow-Key header. Defaults to the APIFY_WORKFLOW_KEY environment variable.
Configuration shared by every HttpClient.