mirror of
https://github.com/nodejs/node.git
synced 2026-11-27 17:52:27 -05:00
doc: improve requireHostHeader
PR-URL: https://github.com/nodejs/node/pull/48860 Reviewed-By: Paolo Insogna <paolo@cowtech.it> Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
This commit is contained in:
1 parent
0cd2393bd9
commit
5e4730858d
1 file changed
+4
-3
+4
-3
@@ -3282,9 +3282,10 @@ changes:
|
||||
the entire request from the client.
|
||||
See [`server.requestTimeout`][] for more information.
|
||||
**Default:** `300000`.
|
||||
* `requireHostHeader` {boolean} It forces the server to respond with
|
||||
a 400 (Bad Request) status code to any HTTP/1.1 request message
|
||||
that lacks a Host header (as mandated by the specification).
|
||||
* `requireHostHeader` {boolean} If set to `true`, it forces the server to
|
||||
respond with a 400 (Bad Request) status code to any HTTP/1.1
|
||||
request message that lacks a Host header
|
||||
(as mandated by the specification).
|
||||
**Default:** `true`.
|
||||
* `ServerResponse` {http.ServerResponse} Specifies the `ServerResponse` class
|
||||
to be used. Useful for extending the original `ServerResponse`. **Default:**
|
||||
|
||||
Reference in new issue
Block a user