mirror of
https://github.com/nodejs/node.git
synced 2026-11-27 17:52:27 -05:00
doc: remove parenthetical \r\n comment in http and http2 docs
The explanation that the HTTP requests include `\r\n` is true but not important or relevant in these two specific contexts. PR-URL: https://github.com/nodejs/node/pull/34178 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
This commit is contained in:
1 parent
9bb70a498d
commit
c62941e84c
2 files changed
+3
-5
No files matched your search
+1
-2
@@ -1983,8 +1983,7 @@ added: v0.1.90
|
||||
**Only valid for request obtained from [`http.Server`][].**
|
||||
|
||||
Request URL string. This contains only the URL that is present in the actual
|
||||
HTTP request. If the request is (remember, each header line ends with `\r\n`
|
||||
plus a final `\r\n` after the last one indicating the end of the header):
|
||||
HTTP request. Take the following request:
|
||||
|
||||
```http
|
||||
GET /status?name=ryan HTTP/1.1
|
||||
|
||||
+2
-3
@@ -2988,8 +2988,7 @@ added: v8.4.0
|
||||
* {string}
|
||||
|
||||
Request URL string. This contains only the URL that is present in the actual
|
||||
HTTP request. If the request is (remember, each header line ends with `\r\n`
|
||||
plus a final `\r\n` after the last one indicating the end of the header):
|
||||
HTTP request. If the request is:
|
||||
|
||||
```http
|
||||
GET /status?name=ryan HTTP/1.1
|
||||
@@ -3003,7 +3002,7 @@ Then `request.url` will be:
|
||||
'/status?name=ryan'
|
||||
```
|
||||
|
||||
To parse the url into its parts `require('url').parse(request.url)`
|
||||
To parse the url into its parts, `require('url').parse(request.url)`
|
||||
can be used:
|
||||
|
||||
```console
|
||||
|
||||
Reference in new issue
Block a user