Skip to content

Commit 9444560

Browse files
rexagodjasnell
andcommitted
doc: add http.IncomingMessage#connection
Refs: #33715 link message.socket deprecate Update doc/api/http.md Co-authored-by: mscdex <mscdex@users.noreply.github.com> fix added version Update doc/api/deprecations.md Co-authored-by: James M Snell <jasnell@gmail.com>
1 parent e57d8af commit 9444560

File tree

2 files changed

+26
-0
lines changed

2 files changed

+26
-0
lines changed

doc/api/deprecations.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2699,6 +2699,19 @@ resolutions not in `node_modules`. This means there will not be deprecation
26992699
warnings for `"exports"` in dependencies. With `--pending-deprecation`, a
27002700
runtime warning results no matter where the `"exports"` usage occurs.
27012701

2702+
<a id="DEP0XXX"></a>
2703+
### DEP0XXX: `http.IncomingMessage#connection`
2704+
<!-- YAML
2705+
changes:
2706+
- version: REPLACEME
2707+
pr-url: https://github.com/nodejs/node/pull/33768
2708+
description: Documentation-only deprecation.
2709+
-->
2710+
2711+
Type: Documentation-only.
2712+
2713+
Prefer [`message.socket`][] over [`message.connection`][].
2714+
27022715
[Legacy URL API]: url.md#url_legacy_url_api
27032716
[NIST SP 800-38D]: https://nvlpubs.nist.gov/nistpubs/Legacy/SP/nistspecialpublication800-38d.pdf
27042717
[RFC 6066]: https://tools.ietf.org/html/rfc6066#section-3
@@ -2757,6 +2770,8 @@ runtime warning results no matter where the `"exports"` usage occurs.
27572770
[`http.request()`]: http.md#http_http_request_options_callback
27582771
[`https.get()`]: https.md#https_https_get_options_callback
27592772
[`https.request()`]: https.md#https_https_request_options_callback
2773+
[`message.connection`]: http.md#http_message_connection
2774+
[`message.socket`]: http.md#http_message_socket
27602775
[`module.createRequire()`]: module.md#module_module_createrequire_filename
27612776
[`os.networkInterfaces()`]: os.md#os_os_networkinterfaces
27622777
[`os.tmpdir()`]: os.md#os_os_tmpdir

doc/api/http.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1972,6 +1972,16 @@ const req = http.request({
19721972
});
19731973
```
19741974

1975+
### `message.connection`
1976+
<!-- YAML
1977+
added: v0.1.90
1978+
deprecated: REPLACEME
1979+
-->
1980+
1981+
> Stability: 0 - Deprecated. Use [`message.socket`][].
1982+
1983+
Alias for [`message.socket`][].
1984+
19751985
### `message.destroy([error])`
19761986
<!-- YAML
19771987
added: v0.3.0
@@ -2730,6 +2740,7 @@ try {
27302740
[`net.Socket`]: net.md#net_class_net_socket
27312741
[`net.createConnection()`]: net.md#net_net_createconnection_options_connectlistener
27322742
[`new URL()`]: url.md#url_new_url_input_base
2743+
[`message.socket`]: #http_message_socket
27332744
[`removeHeader(name)`]: #http_request_removeheader_name
27342745
[`request.end()`]: #http_request_end_data_encoding_callback
27352746
[`request.destroy()`]: #http_request_destroy_error

0 commit comments

Comments
 (0)