Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit c62941e

Browse filesBrowse 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 <jasnell@gmail.com> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
1 parent 9bb70a4 commit c62941e
Copy full SHA for c62941e

File tree

Expand file treeCollapse file tree

2 files changed

+3
-5
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

2 files changed

+3
-5
lines changed
Open diff view settings
Collapse file

‎doc/api/http.md‎

Copy file name to clipboardExpand all lines: doc/api/http.md
+1-2Lines changed: 1 addition & 2 deletions
  • Display the source diff
  • Display the rich diff
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
Collapse file

‎doc/api/http2.md‎

Copy file name to clipboardExpand all lines: doc/api/http2.md
+2-3Lines changed: 2 additions & 3 deletions
  • Display the source diff
  • Display the rich diff
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.