Skip to content

Commit

Permalink
doc: improve requireHostHeader
Browse files Browse the repository at this point in the history
PR-URL: nodejs#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>
  • Loading branch information
GuidoPenta authored and pluris committed Aug 7, 2023
1 parent cbdf81c commit f9f6205
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions doc/api/http.md
Original file line number Diff line number Diff line change
Expand Up @@ -3284,9 +3284,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:**
Expand Down

0 comments on commit f9f6205

Please sign in to comment.