File tree 1 file changed +11
-0
lines changed
1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -427,6 +427,16 @@ added: v0.5.3
427
427
428
428
Emitted after a socket is assigned to this request.
429
429
430
+ ### Event: 'timeout'
431
+ <!-- YAML
432
+ added: v0.7.8
433
+ -->
434
+
435
+ Emitted when the underlying socket times out from inactivity. This only notifies
436
+ that the socket has been idle. The request must be aborted manually.
437
+
438
+ See also: [ ` request.setTimeout() ` ] [ ]
439
+
430
440
### Event: 'upgrade'
431
441
<!-- YAML
432
442
added: v0.1.94
@@ -1966,6 +1976,7 @@ const req = http.request(options, (res) => {
1966
1976
[ `net.createConnection()` ] : net.html#net_net_createconnection_options_connectlistener
1967
1977
[ `removeHeader(name)` ] : #requestremoveheadername
1968
1978
[ `request.end()` ] : #http_request_end_data_encoding_callback
1979
+ [ `request.setTimeout()` ] : #http_request_settimeout_timeout_callback
1969
1980
[ `request.socket` ] : #http_request_socket
1970
1981
[ `request.socket.getPeerCertificate()` ] : tls.html#tls_tlssocket_getpeercertificate_detailed
1971
1982
[ `request.write(data, encoding)` ] : #http_request_write_chunk_encoding_callback
You can’t perform that action at this time.
0 commit comments