PcreateConnection
Bun

property

http2.ClientSessionOptions.createConnection

createConnection?: (authority: URL, option: SessionOptions) => Duplex

An optional callback that receives the URL instance passed to connect and the options object, and returns any Duplex stream that is to be used as the connection for this session.