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 — lib: deprecate _http_* · nodejs/node@12ce819

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • .github
    • CODEOWNERS
  • benchmark/http
    • check_invalid_header_char.js
    • check_is_http_token.js
    • set_header.js
  • doc/api
    • deprecations.md
  • lib
    • _http_agent.js
    • _http_client.js
    • _http_common.js
    • _http_incoming.js
    • _http_outgoing.js
    • _http_server.js
    • http.js
    • https.js
    • internal
      • child_process.js
      • http2
        • compat.js
        • core.js
        • util.js
      • http
        • agent.js
        • client.js
        • common.js
        • incoming.js
        • outgoing.js
        • server.js
  • test
    • async-hooks
      • test-httpparser.request.js
      • test-httpparser.response.js
    • parallel
      • test-async-local-storage-http-parser-leak.js
      • test-http-agent-keepalive-delay.js
      • test-http-agent-keepalive.js
      • test-http-common.js
      • test-http-header-value-relaxed.js
      • test-http-invalidheaderfield2.js
      • test-http-parser-bad-ref.js
      • test-http-parser-lazy-loaded.js
      • test-http-parser-memory-retention.js
      • test-http-parser.js
      • test-http-server-async-dispose.js
      • test-http-server-clear-timer.js
      • test-http-server-close-destroy-timeout.js
      • test-http-server-options-highwatermark.js
      • test-http-set-max-idle-http-parser.js
      • test-https-server-async-dispose.js
      • test-https-server-close-destroy-timeout.js
      • test-outgoing-message-pipe.js
      • test-warn-http-agent-deprecation.js
      • test-warn-http-client-deprecation.js
      • test-warn-http-common-deprecation.js
      • test-warn-http-incoming-deprecation.js
      • test-warn-http-outgoing-deprecation.js
      • test-warn-http-server-deprecation.js
    • sequential
      • test-async-wrap-getasyncid.js
      • test-http-regr-gh-2928.js

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Dismiss banner
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎.github/CODEOWNERS‎

Copy file name to clipboardExpand all lines: .github/CODEOWNERS
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@
7373
/lib/https.js @nodejs/crypto @nodejs/net @nodejs/http
7474
/src/node_http_common* @nodejs/http @nodejs/http2 @nodejs/net
7575
/src/node_http_parser.cc @nodejs/http @nodejs/net
76+
/lib/internal/http/* @nodejs/http @nodejs/net
7677

7778
# http2
7879

Collapse file

‎benchmark/http/check_invalid_header_char.js‎

Copy file name to clipboardExpand all lines: benchmark/http/check_invalid_header_char.js
+5-2Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
'use strict';
22

33
const common = require('../common.js');
4-
const _checkInvalidHeaderChar = require('_http_common')._checkInvalidHeaderChar;
54

65
const groupedInputs = {
76
// Representative set of inputs from an AcmeAir benchmark run:
@@ -51,9 +50,13 @@ const inputs = [
5150
const bench = common.createBenchmark(main, {
5251
input: inputs.concat(Object.keys(groupedInputs)),
5352
n: [1e6],
53+
}, {
54+
flags: ['--expose-internals', '--no-warnings'],
5455
});
5556

5657
function main({ n, input }) {
58+
const checkInvalidHeaderChar = require('internal/http/common')._checkInvalidHeaderChar;
59+
5760
let inputs = [input];
5861
if (Object.hasOwn(groupedInputs, input)) {
5962
inputs = groupedInputs[input];
@@ -62,7 +65,7 @@ function main({ n, input }) {
6265
const len = inputs.length;
6366
bench.start();
6467
for (let i = 0; i < n; i++) {
65-
_checkInvalidHeaderChar(inputs[i % len]);
68+
checkInvalidHeaderChar(inputs[i % len]);
6669
}
6770
bench.end(n);
6871
}
Collapse file

‎benchmark/http/check_is_http_token.js‎

Copy file name to clipboardExpand all lines: benchmark/http/check_is_http_token.js
+5-2Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
'use strict';
22

33
const common = require('../common.js');
4-
const _checkIsHttpToken = require('_http_common')._checkIsHttpToken;
54

65
const bench = common.createBenchmark(main, {
76
key: [
@@ -38,12 +37,16 @@ const bench = common.createBenchmark(main, {
3837
'alternate-protocol:', // slow bailout
3938
],
4039
n: [1e6],
40+
}, {
41+
flags: ['--expose-internals', '--no-warnings'],
4142
});
4243

4344
function main({ n, key }) {
45+
const checkIsHttpToken = require('internal/http/common')._checkIsHttpToken;
46+
4447
bench.start();
4548
for (let i = 0; i < n; i++) {
46-
_checkIsHttpToken(key);
49+
checkIsHttpToken(key);
4750
}
4851
bench.end(n);
4952
}
Collapse file

‎benchmark/http/set_header.js‎

Copy file name to clipboardExpand all lines: benchmark/http/set_header.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
'use strict';
22

33
const common = require('../common.js');
4-
const { OutgoingMessage } = require('_http_outgoing');
4+
const { OutgoingMessage } = require('http');
55

66
const bench = common.createBenchmark(main, {
77
value: [
Collapse file

‎doc/api/deprecations.md‎

Copy file name to clipboardExpand all lines: doc/api/deprecations.md
+3Lines changed: 3 additions & 0 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -4443,6 +4443,9 @@ Creating SHAKE-128 and SHAKE-256 digests without an explicit
44434443

44444444
<!-- YAML
44454445
changes:
4446+
- version: REPLACEME
4447+
pr-url: https://github.com/nodejs/node/pull/58535
4448+
description: Runtime deprecation.
44464449
- version:
44474450
- v24.6.0
44484451
- v22.19.0

0 commit comments

Comments
0 (0)
You are visitor 01402775 — 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.