Skip to content

Commit c62941e

Browse files
Trottaddaleax
authored andcommitted
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 <[email protected]> Reviewed-By: Michael Dawson <[email protected]>
1 parent 9bb70a4 commit c62941e

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

Diff for: doc/api/http.md

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

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

19891988
```http
19901989
GET /status?name=ryan HTTP/1.1

Diff for: doc/api/http2.md

+2-3
Original file line numberDiff line numberDiff line change
@@ -2988,8 +2988,7 @@ added: v8.4.0
29882988
* {string}
29892989

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

29942993
```http
29952994
GET /status?name=ryan HTTP/1.1
@@ -3003,7 +3002,7 @@ Then `request.url` will be:
30033002
'/status?name=ryan'
30043003
```
30053004

3006-
To parse the url into its parts `require('url').parse(request.url)`
3005+
To parse the url into its parts, `require('url').parse(request.url)`
30073006
can be used:
30083007

30093008
```console

0 commit comments

Comments
 (0)