Skip to content

Commit 56dbe46

Browse files
committedJul 4, 2020
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: #34178 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
1 parent 21005c3 commit 56dbe46

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed
 

‎doc/api/http.md

+1-2
Original file line numberDiff line numberDiff line change
@@ -2101,8 +2101,7 @@ added: v0.1.90
21012101
**Only valid for request obtained from [`http.Server`][].**
21022102

21032103
Request URL string. This contains only the URL that is present in the actual
2104-
HTTP request. If the request is (remember, each header line ends with `\r\n`
2105-
plus a final `\r\n` after the last one indicating the end of the header):
2104+
HTTP request. Take the following request:
21062105

21072106
```http
21082107
GET /status?name=ryan HTTP/1.1

‎doc/api/http2.md

+2-3
Original file line numberDiff line numberDiff line change
@@ -3034,8 +3034,7 @@ added: v8.4.0
30343034
* {string}
30353035

30363036
Request URL string. This contains only the URL that is present in the actual
3037-
HTTP request. If the request is (remember, each header line ends with `\r\n`
3038-
plus a final `\r\n` after the last one indicating the end of the header):
3037+
HTTP request. If the request is:
30393038

30403039
```http
30413040
GET /status?name=ryan HTTP/1.1
@@ -3049,7 +3048,7 @@ Then `request.url` will be:
30493048
'/status?name=ryan'
30503049
```
30513050

3052-
To parse the url into its parts `require('url').parse(request.url)`
3051+
To parse the url into its parts, `require('url').parse(request.url)`
30533052
can be used:
30543053

30553054
```console

0 commit comments

Comments
 (0)
Please sign in to comment.