File tree 1 file changed +6
-0
lines changed
1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -275,6 +275,7 @@ changes:
275
275
* ` port ` ** Default:** ` 443 `
276
276
* ` agent ` ** Default:** ` https.globalAgent `
277
277
* ` callback ` {Function}
278
+ * Returns: {http.ClientRequest}
278
279
279
280
Makes a request to a secure web server.
280
281
@@ -288,6 +289,10 @@ The following additional `options` from [`tls.connect()`][] are also accepted:
288
289
string, it is automatically parsed with [ ` new URL() ` ] [ ] . If it is a [ ` URL ` ] [ ]
289
290
object, it will be automatically converted to an ordinary ` options ` object.
290
291
292
+ ` https.request() ` returns an instance of the [ ` http.ClientRequest ` ] [ ]
293
+ class. The ` ClientRequest ` instance is a writable stream. If one needs to
294
+ upload a file with a POST request, then write to the ` ClientRequest ` object.
295
+
291
296
``` js
292
297
const https = require (' https' );
293
298
@@ -458,6 +463,7 @@ headers: max-age=0; pin-sha256="WoiWRyIOVNa9ihaBciRSC7XHjliYS9VwUGOIud4PB18="; p
458
463
[ `URL` ] : url.md#url_the_whatwg_url_api
459
464
[ `http.Agent(options)` ] : http.md#http_new_agent_options
460
465
[ `http.Agent` ] : http.md#http_class_http_agent
466
+ [ `http.ClientRequest` ] : http.md#http_class_http_clientrequest
461
467
[ `http.Server#headersTimeout` ] : http.md#http_server_headerstimeout
462
468
[ `http.Server#keepAliveTimeout` ] : http.md#http_server_keepalivetimeout
463
469
[ `http.Server#maxHeadersCount` ] : http.md#http_server_maxheaderscount
You can’t perform that action at this time.
0 commit comments