diff options
author | cjihrig <cjihrig@gmail.com> | 2018-12-03 12:27:46 -0500 |
---|---|---|
committer | cjihrig <cjihrig@gmail.com> | 2018-12-20 09:31:52 -0500 |
commit | 632f2633249dc0f295e9d2abab33baaf0f75ce6f (patch) | |
tree | 6f6f6a4f51f31a50a18f390793d6e27ae7bb9456 /doc | |
parent | 436f4de38f511508710eb1492f4d23a9f427e7f7 (diff) | |
download | android-node-v8-632f2633249dc0f295e9d2abab33baaf0f75ce6f.tar.gz android-node-v8-632f2633249dc0f295e9d2abab33baaf0f75ce6f.tar.bz2 android-node-v8-632f2633249dc0f295e9d2abab33baaf0f75ce6f.zip |
cli: add --max-http-header-size flag
Allow the maximum size of HTTP headers to be overridden from
the command line.
co-authored-by: Matteo Collina <hello@matteocollina.com>
PR-URL: https://github.com/nodejs/node/pull/24811
Fixes: https://github.com/nodejs/node/issues/24692
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Myles Borins <myles.borins@gmail.com>
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
Reviewed-By: Сковорода Никита Андреевич <chalkerx@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
Diffstat (limited to 'doc')
-rw-r--r-- | doc/api/cli.md | 8 | ||||
-rw-r--r-- | doc/node.1 | 3 |
2 files changed, 11 insertions, 0 deletions
diff --git a/doc/api/cli.md b/doc/api/cli.md index 22e087f317..97cfea239e 100644 --- a/doc/api/cli.md +++ b/doc/api/cli.md @@ -197,6 +197,13 @@ added: v9.0.0 Specify the `file` of the custom [experimental ECMAScript Module][] loader. +### `--max-http-header-size=size` +<!-- YAML +added: REPLACEME +--> + +Specify the maximum size, in bytes, of HTTP headers. Defaults to 8KB. + ### `--napi-modules` <!-- YAML added: v7.10.0 @@ -620,6 +627,7 @@ Node.js options that are allowed are: - `--inspect-brk` - `--inspect-port` - `--loader` +- `--max-http-header-size` - `--napi-modules` - `--no-deprecation` - `--no-force-async-hooks-checks` diff --git a/doc/node.1 b/doc/node.1 index ca16c78a51..66933066bc 100644 --- a/doc/node.1 +++ b/doc/node.1 @@ -139,6 +139,9 @@ Specify the as a custom loader, to load .Fl -experimental-modules . . +.It Fl -max-http-header-size Ns = Ns Ar size +Specify the maximum size of HTTP headers in bytes. Defaults to 8KB. +. .It Fl -napi-modules This option is a no-op. It is kept for compatibility. |