| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent e78824e commit 42ecd46
2 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -3297,14 +3297,13 @@ changes: | |||
| 3297 | 3297 | ||
| 3298 | 3298 | * `url` {string | URL} | |
| 3299 | 3299 | * `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. | ||
| 3302 | 3301 | * `callback` {Function} | |
| 3303 | 3302 | * Returns: {http.ClientRequest} | |
| 3304 | 3303 | ||
| 3305 | 3304 | Since most requests are GET requests without bodies, Node.js provides this | |
| 3306 | 3305 | 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()` | ||
| 3308 | 3307 | automatically. The callback must take care to consume the response | |
| 3309 | 3308 | data for reasons stated in [`http.ClientRequest`][] section. | |
| 3310 | 3309 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -285,7 +285,7 @@ changes: | |||
| 285 | 285 | ||
| 286 | 286 | * `url` {string | URL} | |
| 287 | 287 | * `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. | ||
| 289 | 289 | * `callback` {Function} | |
| 290 | 290 | ||
| 291 | 291 | Like [`http.get()`][] but for HTTPS. | |
| Back | FazBrowse Home | New Git URL |
0 commit comments