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 — http: deprecate instantiating classes without new · nodejs/node@32efb63

File tree

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

‎doc/api/deprecations.md‎

Copy file name to clipboardExpand all lines: doc/api/deprecations.md
+15Lines changed: 15 additions & 0 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -3940,6 +3940,21 @@ Type: Documentation-only
39403940
The support for priority signaling has been deprecated in the [RFC 9113][], and
39413941
will be removed in future versions of Node.js.
39423942

3943+
### DEP0195: Instantiating `node:http` classes without `new`
3944+
3945+
<!-- YAML
3946+
changes:
3947+
- version: REPLACEME
3948+
pr-url: https://github.com/nodejs/node/pull/58518
3949+
description: Documentation-only deprecation.
3950+
-->
3951+
3952+
Type: Documentation-only
3953+
3954+
Instantiating classes without the `new` qualifier exported by the `node:http` module is deprecated.
3955+
It is recommended to use the `new` qualifier instead. This applies to all http classes, such as
3956+
`OutgoingMessage`, `IncomingMessage`, `ServerResponse` and `ClientRequest`.
3957+
39433958
[DEP0142]: #dep0142-repl_builtinlibs
39443959
[NIST SP 800-38D]: https://nvlpubs.nist.gov/nistpubs/Legacy/SP/nistspecialpublication800-38d.pdf
39453960
[RFC 6066]: https://tools.ietf.org/html/rfc6066#section-3

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.