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. - 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.