Http2FrameCodecOptions
Http2FrameCodecOptions =
object
Defined in: packages/format-http/src/h2/http2-frame.ts:98
Options for Http2FrameCodec.
Properties
Section titled “Properties”headerTableSize
Section titled “headerTableSize”
readonlyheaderTableSize:number
Defined in: packages/format-http/src/h2/http2-frame.ts:128
This endpoint’s SETTINGS_HEADER_TABLE_SIZE, for the HPACK decoder.
huffman?
Section titled “huffman?”
readonlyoptionalhuffman?:boolean
Defined in: packages/format-http/src/h2/http2-frame.ts:131
Huffman-code outgoing strings. Defaults to true.
maxFieldBlockSize
Section titled “maxFieldBlockSize”
readonlymaxFieldBlockSize:number
Defined in: packages/format-http/src/h2/http2-frame.ts:125
Largest encoded field block (HEADERS plus CONTINUATIONs) buffered for
decoding; a larger one is a connection error (ENHANCE_YOUR_CALM). Above
maxHeaderListSize, it leaves room to decode a list over that limit and
answer it as a stream error rather than closing the connection.
maxFrameSize
Section titled “maxFrameSize”
readonlymaxFrameSize:number
Defined in: packages/format-http/src/h2/http2-frame.ts:110
This endpoint’s SETTINGS_MAX_FRAME_SIZE: a larger frame is a connection
error.
maxHeaderListSize
Section titled “maxHeaderListSize”
readonlymaxHeaderListSize:number
Defined in: packages/format-http/src/h2/http2-frame.ts:117
This endpoint’s SETTINGS_MAX_HEADER_LIST_SIZE: a larger decoded list is a
stream error, reported once the whole block was decoded so that HPACK state
stays in sync.
readonlyrole:"client"|"server"
Defined in: packages/format-http/src/h2/http2-frame.ts:104
server expects the client preface before the first frame; client
expects frames straight away. Neither sends the preface: the client’s
connection writes HTTP2_CLIENT_PREFACE itself.