Skip to content

Http1ServerConnectionOptions

Http1ServerConnectionOptions = object

Defined in: packages/net-http/src/h1/http1-server-connection.ts:31

Construction options for Http1ServerConnection.

readonly connection: TransportConnection

Defined in: packages/net-http/src/h1/http1-server-connection.ts:33

An accepted connection that negotiated HTTP/1.1, or nothing.


readonly handler: HttpHandler

Defined in: packages/net-http/src/h1/http1-server-connection.ts:35


readonly idleTimeoutMs: number

Defined in: packages/net-http/src/h1/http1-server-connection.ts:48

How long, in milliseconds, the connection may wait for the next request head to arrive complete while no request is being handled. Bounds both idle keep-alive connections and heads sent a byte at a time. Required.


readonly maxHeadSize: number

Defined in: packages/net-http/src/h1/http1-server-connection.ts:41

Largest request head accepted, in bytes; a larger one is answered with 431. Required: it bounds what a client can make the server buffer.