Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fixup! http: make --insecure-http-parser configurable per-stream or p…
…er-server
  • Loading branch information
addaleax committed Jan 22, 2020
commit 946e815d81f07bcf355f21156d14ec5ab4d2fee1
15 changes: 8 additions & 7 deletions doc/api/http.md
Original file line number Diff line number Diff line change
Expand Up @@ -2049,10 +2049,10 @@ changes:
* `ServerResponse` {http.ServerResponse} Specifies the `ServerResponse` class
to be used. Useful for extending the original `ServerResponse`. **Default:**
`ServerResponse`.
* `insecureHTTPParser` {boolean} Optionally overrides the value of
[`--insecure-http-parser`][] for requests received by this server, i.e.
whether to accept invalid HTTP headers that must manually be sanitized.
**Default:** false.
* `insecureHTTPParser` {boolean} Use an insecure HTTP parser that accepts
invalid HTTP headers when `true`. Using the insecure parser should be
avoided, see [`--insecure-http-parser`][] for more information.
Comment thread
addaleax marked this conversation as resolved.
Outdated
**Default:** `false`
* `maxHeaderSize` {number} Optionally overrides the value of
[`--max-http-header-size`][] for requests received by this server, i.e.
the maximum length of request headers in bytes.
Expand Down Expand Up @@ -2201,9 +2201,10 @@ changes:
request to. **Default:** `'localhost'`.
* `hostname` {string} Alias for `host`. To support [`url.parse()`][],
`hostname` will be used if both `host` and `hostname` are specified.
* `insecureHTTPParser` {boolean} Optionally overrides the value of
[`--insecure-http-parser`][] for requests received from the server, i.e.
whether to accept invalid HTTP headers that must manually be sanitized.
* `insecureHTTPParser` {boolean} Use an insecure HTTP parser that accepts
invalid HTTP headers when `true`. Using the insecure parser should be
avoided, see [`--insecure-http-parser`][] for more information.
Comment thread
addaleax marked this conversation as resolved.
Outdated
**Default:** `false`
* `localAddress` {string} Local interface to bind for network connections.
* `lookup` {Function} Custom lookup function. **Default:** [`dns.lookup()`][].
* `maxHeaderSize` {number} Optionally overrides the value of
Expand Down