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 42ecd46

Browse filesBrowse files
an5erruyadorno
authored andcommitted
doc: fix ambiguity in http.md and https.md
PR-URL: #48692 Fixes: #48688 Reviewed-By: Robert Nagy <ronagy@icloud.com> Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
1 parent e78824e commit 42ecd46
Copy full SHA for 42ecd46

File tree

Expand file treeCollapse file tree

2 files changed

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

2 files changed

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

‎doc/api/http.md‎

Copy file name to clipboardExpand all lines: doc/api/http.md
+2-3Lines changed: 2 additions & 3 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -3297,14 +3297,13 @@ changes:
32973297

32983298
* `url` {string | URL}
32993299
* `options` {Object} Accepts the same `options` as
3300-
[`http.request()`][], with the `method` always set to `GET`.
3301-
Properties that are inherited from the prototype are ignored.
3300+
[`http.request()`][], with the method set to GET by default.
33023301
* `callback` {Function}
33033302
* Returns: {http.ClientRequest}
33043303

33053304
Since most requests are GET requests without bodies, Node.js provides this
33063305
convenience method. The only difference between this method and
3307-
[`http.request()`][] is that it sets the method to GET and calls `req.end()`
3306+
[`http.request()`][] is that it sets the method to GET by default and calls `req.end()`
33083307
automatically. The callback must take care to consume the response
33093308
data for reasons stated in [`http.ClientRequest`][] section.
33103309

Collapse file

‎doc/api/https.md‎

Copy file name to clipboardExpand all lines: doc/api/https.md
+1-1Lines changed: 1 addition & 1 deletion
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ changes:
285285

286286
* `url` {string | URL}
287287
* `options` {Object | string | URL} Accepts the same `options` as
288-
[`https.request()`][], with the `method` always set to `GET`.
288+
[`https.request()`][], with the method set to GET by default.
289289
* `callback` {Function}
290290

291291
Like [`http.get()`][] but for HTTPS.

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.