Skip to content

Http1CodecOptions

Http1CodecOptions = object

Defined in: packages/format-http/src/h1/http1-message.ts:96

Options shared by Http1ServerCodec and Http1ClientCodec.

readonly maxHeadSize: number

Defined in: packages/format-http/src/h1/http1-message.ts:103

Largest head accepted, in bytes: the start line, every field line and the blank line that ends them. Also bounds each trailer section and each chunk-size line. Required, without a default: it is what stops a peer from driving unbounded buffering, and every caller must choose it.