HttpAgentOptions
HttpAgentOptions =
object
Defined in: packages/net-http/src/client/http-agent.ts:53
Construction options for HttpAgent. Every limit is required.
Properties
Section titled “Properties”connector
Section titled “connector”
readonlyconnector:Connector
Defined in: packages/net-http/src/client/http-agent.ts:55
Opens connections; connectTcp from @ac-kit/net-transport-node.
http2?
Section titled “http2?”
readonlyoptionalhttp2?:HttpAgentHttp2Options
Defined in: packages/net-http/src/client/http-agent.ts:77
Use HTTP/2 with these limits where the server accepts it: offered through
ALPN to https: origins, and spoken to http: origins with
priorKnowledge. Absent, every connection is HTTP/1.1.
http3?
Section titled “http3?”
readonlyoptionalhttp3?:HttpAgentHttp3Options
Defined in: packages/net-http/src/client/http-agent.ts:85
Reach https: origins over HTTP/3 with these limits: those that advertised
it in an Alt-Svc response field (RFC 7838), or every one with
priorKnowledge. A protocol switch the server does not accept over HTTP/3
still goes over HTTP/1.1, through connector.
idleTimeoutMs
Section titled “idleTimeoutMs”
readonlyidleTimeoutMs:number
Defined in: packages/net-http/src/client/http-agent.ts:70
How long, in milliseconds, an unused connection is kept for reuse; an HTTP/2 connection is unused once no stream is open on it.
maxConnectionsPerOrigin
Section titled “maxConnectionsPerOrigin”
readonlymaxConnectionsPerOrigin:number
Defined in: packages/net-http/src/client/http-agent.ts:64
Connections open at once to one origin. A request finding them all busy waits for one to free up.
maxHeadSize
Section titled “maxHeadSize”
readonlymaxHeadSize:number
Defined in: packages/net-http/src/client/http-agent.ts:58
Largest response head accepted, in bytes.