GeezerVison is showing github.com — lib: deprecate _http_* · nodejs/node@12ce819
File treeExpand file treeCollapse file tree Open diff view settings Some content is hiddenLarge Commits have some content hidden by default. Use the searchbox below for content that may be hidden. Dismiss bannerExpand file treeCollapse file tree Open diff view settings Collapse file Copy file name to clipboardExpand all lines: .github/CODEOWNERS +1Lines changed: 1 addition & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 73 | 73 | /lib/https.js @nodejs/crypto @nodejs/net @nodejs/http | 74 | 74 | /src/node_http_common* @nodejs/http @nodejs/http2 @nodejs/net | 75 | 75 | /src/node_http_parser.cc @nodejs/http @nodejs/net | | 76 | +/lib/internal/http/* @nodejs/http @nodejs/net | 76 | 77 |
| 77 | 78 | # http2 | 78 | 79 |
| |
Collapse file Copy file name to clipboardExpand all lines: benchmark/http/check_invalid_header_char.js +5-2Lines changed: 5 additions & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 1 | 1 | 'use strict'; | 2 | 2 |
| 3 | 3 | const common = require('../common.js'); | 4 | | -const _checkInvalidHeaderChar = require('_http_common')._checkInvalidHeaderChar; | 5 | 4 |
| 6 | 5 | const groupedInputs = { | 7 | 6 | // Representative set of inputs from an AcmeAir benchmark run: | @@ -51,9 +50,13 @@ const inputs = [ | 51 | 50 | const bench = common.createBenchmark(main, { | 52 | 51 | input: inputs.concat(Object.keys(groupedInputs)), | 53 | 52 | n: [1e6], | | 53 | +}, { | | 54 | + flags: ['--expose-internals', '--no-warnings'], | 54 | 55 | }); | 55 | 56 |
| 56 | 57 | function main({ n, input }) { | | 58 | + const checkInvalidHeaderChar = require('internal/http/common')._checkInvalidHeaderChar; | | 59 | + | 57 | 60 | let inputs = [input]; | 58 | 61 | if (Object.hasOwn(groupedInputs, input)) { | 59 | 62 | inputs = groupedInputs[input]; | @@ -62,7 +65,7 @@ function main({ n, input }) { | 62 | 65 | const len = inputs.length; | 63 | 66 | bench.start(); | 64 | 67 | for (let i = 0; i < n; i++) { | 65 | | - _checkInvalidHeaderChar(inputs[i % len]); | | 68 | + checkInvalidHeaderChar(inputs[i % len]); | 66 | 69 | } | 67 | 70 | bench.end(n); | 68 | 71 | } |
Collapse file Copy file name to clipboardExpand all lines: benchmark/http/check_is_http_token.js +5-2Lines changed: 5 additions & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 1 | 1 | 'use strict'; | 2 | 2 |
| 3 | 3 | const common = require('../common.js'); | 4 | | -const _checkIsHttpToken = require('_http_common')._checkIsHttpToken; | 5 | 4 |
| 6 | 5 | const bench = common.createBenchmark(main, { | 7 | 6 | key: [ | @@ -38,12 +37,16 @@ const bench = common.createBenchmark(main, { | 38 | 37 | 'alternate-protocol:', // slow bailout | 39 | 38 | ], | 40 | 39 | n: [1e6], | | 40 | +}, { | | 41 | + flags: ['--expose-internals', '--no-warnings'], | 41 | 42 | }); | 42 | 43 |
| 43 | 44 | function main({ n, key }) { | | 45 | + const checkIsHttpToken = require('internal/http/common')._checkIsHttpToken; | | 46 | + | 44 | 47 | bench.start(); | 45 | 48 | for (let i = 0; i < n; i++) { | 46 | | - _checkIsHttpToken(key); | | 49 | + checkIsHttpToken(key); | 47 | 50 | } | 48 | 51 | bench.end(n); | 49 | 52 | } |
Collapse file Copy file name to clipboardExpand all lines: benchmark/http/set_header.js +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
| 1 | 1 | 'use strict'; | 2 | 2 |
| 3 | 3 | const common = require('../common.js'); | 4 | | -const { OutgoingMessage } = require('_http_outgoing'); | | 4 | +const { OutgoingMessage } = require('http'); | 5 | 5 |
| 6 | 6 | const bench = common.createBenchmark(main, { | 7 | 7 | value: [ | |
Collapse file 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 number | Diff line number | Diff line change |
|---|
@@ -4443,6 +4443,9 @@ Creating SHAKE-128 and SHAKE-256 digests without an explicit | 4443 | 4443 |
| 4444 | 4444 | <!-- YAML | 4445 | 4445 | changes: | | 4446 | + - version: REPLACEME | | 4447 | + pr-url: https://github.com/nodejs/node/pull/58535 | | 4448 | + description: Runtime deprecation. | 4446 | 4449 | - version: | 4447 | 4450 | - v24.6.0 | 4448 | 4451 | - v22.19.0 | |
|