Commit 69b55d2 1 parent c73cfcc commit 69b55d2 Copy full SHA for 69b55d2
File tree 2 files changed +3
-4
lines changed
2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -3351,14 +3351,13 @@ changes:
3351
3351
3352
3352
* ` url ` {string | URL}
3353
3353
* ` options ` {Object} Accepts the same ` options ` as
3354
- [ ` http.request() ` ] [ ] , with the ` method ` always set to ` GET ` .
3355
- Properties that are inherited from the prototype are ignored.
3354
+ [ ` http.request() ` ] [ ] , with the method set to GET by default.
3356
3355
* ` callback ` {Function}
3357
3356
* Returns: {http.ClientRequest}
3358
3357
3359
3358
Since most requests are GET requests without bodies, Node.js provides this
3360
3359
convenience method. The only difference between this method and
3361
- [ ` http.request() ` ] [ ] is that it sets the method to GET and calls ` req.end() `
3360
+ [ ` http.request() ` ] [ ] is that it sets the method to GET by default and calls ` req.end() `
3362
3361
automatically. The callback must take care to consume the response
3363
3362
data for reasons stated in [ ` http.ClientRequest ` ] [ ] section.
3364
3363
Original file line number Diff line number Diff line change @@ -296,7 +296,7 @@ changes:
296
296
297
297
* ` url ` {string | URL}
298
298
* ` options ` {Object | string | URL} Accepts the same ` options ` as
299
- [ ` https.request() ` ] [ ] , with the ` method ` always set to ` GET ` .
299
+ [ ` https.request() ` ] [ ] , with the method set to GET by default .
300
300
* ` callback ` {Function}
301
301
302
302
Like [ ` http.get() ` ] [ ] but for HTTPS.
You can’t perform that action at this time.
0 commit comments