diff options
Diffstat (limited to 'doc')
-rw-r--r-- | doc/api/cli.md | 16 | ||||
-rw-r--r-- | doc/node.1 | 6 |
2 files changed, 22 insertions, 0 deletions
diff --git a/doc/api/cli.md b/doc/api/cli.md index 09a5364bf8c..1be3bb85269 100644 --- a/doc/api/cli.md +++ b/doc/api/cli.md @@ -119,6 +119,22 @@ added: v6.0.0 Force FIPS-compliant crypto on startup. (Cannot be disabled from script code.) (Same requirements as `--enable-fips`.) +### `--http-parser=library` +<!-- YAML +added: REPLACEME +--> + +Chooses an HTTP parser library. Available values are: + +- `llhttp` for https://llhttp.org/ +- `legacy` for https://github.com/nodejs/http-parser + +The default is `legacy`, unless otherwise specified when building Node.js. + +This flag exists to aid in experimentation with the internal implementation of +the Node.js http parser. +This flag is likely to become a no-op and removed at some point in the future. + ### `--icu-data-dir=file` <!-- YAML added: v0.11.15 diff --git a/doc/node.1 b/doc/node.1 index e911bac47ef..7695c2011e3 100644 --- a/doc/node.1 +++ b/doc/node.1 @@ -97,6 +97,12 @@ Enable experimental ES module support in VM module. .It Fl -experimental-worker Enable experimental worker threads using worker_threads module. . +.It Fl -http-parser Ns = Ns Ar library +Chooses an HTTP parser library. Available values are +.Sy llhttp +or +.Sy legacy . +. .It Fl -force-fips Force FIPS-compliant crypto on startup (Cannot be disabled from script code). |