GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — doc: add documentation for the 'timeout' event · nodejs/node@7fa2bee

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • doc/api
    • http.md
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎doc/api/http.md‎

Copy file name to clipboardExpand all lines: doc/api/http.md
+11Lines changed: 11 additions & 0 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -427,6 +427,16 @@ added: v0.5.3
427427

428428
Emitted after a socket is assigned to this request.
429429

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+
430440
### Event: 'upgrade'
431441
<!-- YAML
432442
added: v0.1.94
@@ -1909,6 +1919,7 @@ const req = http.request(options, (res) => {
19091919
[`net.Socket`]: net.html#net_class_net_socket
19101920
[`net.createConnection()`]: net.html#net_net_createconnection_options_connectlistener
19111921
[`request.end()`]: #http_request_end_data_encoding_callback
1922+
[`request.setTimeout()`]: #http_request_settimeout_timeout_callback
19121923
[`request.socket`]: #http_request_socket
19131924
[`request.socket.getPeerCertificate()`]: tls.html#tls_tlssocket_getpeercertificate_detailed
19141925
[`request.write(data, encoding)`]: #http_request_write_chunk_encoding_callback

0 commit comments

Comments
0 (0)
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.