OptionalbrowserWhat browser to emulate.
OptionalcookiePass a ToughCookie instance to Impit.
This impit instance will use the provided cookie jar for both storing and retrieving cookies.
OptionalfollowWhether to follow redirects or not.
OptionalheadersAdditional headers to include in every request made by this Impit instance.
Can be an object, a Map, or an array of tuples or an instance of the Headers class.
These headers override any browser impersonation headers (set via the ImpitOptions.browser option)
and are in turn overridden by request-specific headers (set via RequestInit.headers).
Header matching is case-insensitive — for example, setting user-agent here will override
the impersonation User-Agent header.
To remove an impersonated header, pass an empty string as the value.
Optionalhttp3Enable HTTP/3 support.
Warning: Proxies are not supported when HTTP/3 is enabled.
OptionalignoreIgnore TLS errors such as invalid certificates.
OptionallocalLocal address to bind the client to. Useful for testing purposes or when you want to bind the client to a specific network interface.
Can be an IP address in the format xxx.xxx.xxx.xxx (for IPv4) or ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff (for IPv6).
OptionalmaxMaximum number of redirects to follow.
If this number is exceeded, the request will be rejected with an error.
OptionalproxyProxy URL to use for this Impit instance.
Supports HTTP, HTTPS, SOCKS4 and SOCKS5 proxies.
Warning: Not supported when HTTP/3 is enabled.
OptionaltimeoutDefault timeout for this Impit instance in milliseconds.
OptionalvanillaWhether to fallback to a vanilla user-agent if the emulated browser is not supported by the target website.
Options for configuring an Impit instance.
These options allow you to customize the behavior of the Impit instance, including browser emulation, TLS settings, proxy configuration, timeouts, and more.
If no options are provided, default settings will be used.
See Impit for usage.