Optional
browserWhat browser to emulate.
Optional
cookiePass a ToughCookie
instance to Impit.
This impit
instance will use the provided cookie jar for both storing and retrieving cookies.
Optional
followWhether to follow redirects or not.
Optional
headersAdditional 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.
Optional
http3Enable HTTP/3 support.
Optional
ignoreIgnore TLS errors such as invalid certificates.
Optional
localLocal 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).
Optional
maxMaximum number of redirects to follow.
If this number is exceeded, the request will be rejected with an error.
Optional
proxyProxy URL to use for this Impit instance.
Supports HTTP, HTTPS, SOCKS4 and SOCKS5 proxies.
Optional
timeoutDefault timeout for this Impit instance in milliseconds.
Optional
vanillaWhether 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.