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 <[email protected]>
Reviewed-By: Matteo Collina <[email protected]>
Reviewed-By: Marco Ippolito <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
  • Loading branch information
GuidoPenta authored and Ceres6 committed Jul 27, 2023
1 parent 068f07c commit 467c69f
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 467c69f

Please sign in to comment.