@@ -744,6 +744,18 @@ added: v23.8.0
744744
745745A ` QuicSession ` represents the local side of a QUIC connection.
746746
747+ ### ` session.applicationOptions `
748+
749+ <!-- YAML
750+ added: REPLACEME
751+ -->
752+
753+ * Type: {quic.ApplicationOptions}
754+
755+ The current application-level options for this session. These include settings
756+ that are specific to the negotiated application protocol (e.g. HTTP/3) and may
757+ be negotiated separately from the transport parameters. Read only.
758+
747759### ` session.close([options]) `
748760
749761<!-- YAML
@@ -2238,6 +2250,70 @@ added: v23.8.0
22382250
22392251## Types
22402252
2253+ ### type: ` ApplicationOptions `
2254+
2255+ <!-- YAML
2256+ added: REPLACEME
2257+ -->
2258+
2259+ * Type: {Object}
2260+
2261+ The application specific options.
2262+
2263+ #### ` applicationOptions.maxHeaderPairs `
2264+
2265+ * Type: {bigint|number}
2266+
2267+ Maximum number of header name-value pairs accepted per header block.
2268+ Headers beyond this limit are silently dropped. ** Default:** ` 128 `
2269+
2270+ #### ` applicationOptions.maxHeaderLength `
2271+
2272+ * Type: {bigint|number}
2273+
2274+ Maximum total byte length of all header names and values combined per header
2275+ block. Headers that would push the total over this limit are silently
2276+ dropped. ** Default:** ` 8192 `
2277+
2278+ #### ` applicationOptions.maxFieldSectionSize `
2279+
2280+ * Type: {bigint|number}
2281+
2282+ Maximum size of a compressed header field section (QPACK). ` 0 ` means
2283+ unlimited. ** Default:** ` 0 `
2284+
2285+ #### ` applicationOptions.qpackMaxDTableCapacity `
2286+
2287+ * Type: {bigint|number}
2288+
2289+ QPACK dynamic table capacity in bytes. Set to ` 0 ` to disable the dynamic
2290+ table. ** Default:** ` 4096 `
2291+
2292+ #### ` applicationOptions.qpackEncoderMaxDTableCapacity `
2293+
2294+ * Type: {bigint|number}
2295+
2296+ QPACK encoder maximum dynamic table capacity. ** Default:** ` 4096 `
2297+
2298+ #### ` applicationOptions.qpackBlockedStreams `
2299+
2300+ * Type: {bigint|number}
2301+
2302+ Maximum number of streams that can e blocked waiting for QPACK dynamic table
2303+ updates. ** Default:** ` 100 `
2304+
2305+ #### ` applicationOptions.enableConnectProtocol `
2306+
2307+ * Type: {boolean}
2308+
2309+ Enable the extended CONNECT protocol (RFC 9220). ** Default:** ` false `
2310+
2311+ #### ` applicationOptions.enableDatagrams `
2312+
2313+ * Type: {boolean}
2314+
2315+ Enable HTTP/3 datagrams (RFC 9297). ** Default:** ` false `
2316+
22412317### Type: ` EndpointOptions `
22422318
22432319<!-- YAML
@@ -2496,30 +2572,9 @@ Default: `'h3'`
24962572added: v26.2.0
24972573-->
24982574
2499- * Type: {Object }
2575+ * Type: {quic.ApplicationOptions }
25002576
2501- HTTP/3 application-specific options. These only apply when the negotiated
2502- ALPN selects the HTTP/3 application (` 'h3' ` ).
2503-
2504- * ` maxHeaderPairs ` {number} Maximum number of header name-value pairs
2505- accepted per header block. Headers beyond this limit are silently
2506- dropped. ** Default:** ` 128 `
2507- * ` maxHeaderLength ` {number} Maximum total byte length of all header
2508- names and values combined per header block. Headers that would push
2509- the total over this limit are silently dropped. ** Default:** ` 8192 `
2510- * ` maxFieldSectionSize ` {number} Maximum size of a compressed header
2511- field section (QPACK). ` 0 ` means unlimited. ** Default:** ` 0 `
2512- * ` qpackMaxDTableCapacity ` {number} QPACK dynamic table capacity in
2513- bytes. Set to ` 0 ` to disable the dynamic table. ** Default:** ` 4096 `
2514- * ` qpackEncoderMaxDTableCapacity ` {number} QPACK encoder maximum
2515- dynamic table capacity. ** Default:** ` 4096 `
2516- * ` qpackBlockedStreams ` {number} Maximum number of streams that can
2517- be blocked waiting for QPACK dynamic table updates.
2518- ** Default:** ` 100 `
2519- * ` enableConnectProtocol ` {boolean} Enable the extended CONNECT
2520- protocol (RFC 9220). ** Default:** ` false `
2521- * ` enableDatagrams ` {boolean} Enable HTTP/3 datagrams (RFC 9297).
2522- ** Default:** ` false `
2577+ Application-specific options.
25232578
25242579``` mjs
25252580const { listen } = await import (' node:quic' );
0 commit comments