interface
FetchSessionInit
interface FetchSessionInit
- keepAlive?: boolean | { idleTimeout: number; maxIdleSockets: number }
Connection reuse.
falsecloses every connection after its response. The limits do not apply to HTTP/3 connections. - proxy?: FetchProxyOption
The proxy for the requests of this session.
The constructor throws for a value that names no proxy, such as a number or an object without a
url. Onlyundefined,nulland""mean no option. On a request,fetch()ignores such a value. - tls?: BunFetchRequestInitTLS
TLS options for the connections of this session. A request that passes its own
tlsuses that instead, as a whole.A
checkServerIdentitygiven here runs once per connection, and the connection is then shared by the requests of this session.