Skip to main content
Version: Next

StreamOptions

Hierarchy

Index

Properties

optionalinheritedcookieJar

cookieJar?: CookieJar

optionalinheritedignoreTlsErrors

ignoreTlsErrors?: boolean

When true, TLS certificate errors are ignored for this request. Also enabled by session.proxyInfo.ignoreTlsErrors (MITM proxies). Best-effort: clients that cannot disable TLS verification (e.g. the native fetch fallback) ignore it.

optionalonRedirect

onRedirect?: RedirectHandler

optionalinheritedproxyUrl

proxyUrl?: string

Overrides the proxy URL set in the session for this request.

Note that setting this manually can interfere with session proxy rotation.

optionalinheritedsession

session?: ISession

optionalinheritedsignal

signal?: AbortSignal

An AbortSignal to cancel the HTTP request.

optionalinheritedtimeoutMillis

timeoutMillis?: number

Timeout for the HTTP request in milliseconds.