diff --git a/benchmark/http2/headers.js b/benchmark/http2/headers.js index dc2fb3a0a1fd18..f6b29347cdb5b2 100644 --- a/benchmark/http2/headers.js +++ b/benchmark/http2/headers.js @@ -6,7 +6,7 @@ const PORT = common.PORT; const bench = common.createBenchmark(main, { n: [1e3], nheaders: [0, 10, 100, 1000], -}, { flags: ['--expose-http2', '--no-warnings'] }); +}, { flags: ['--no-warnings'] }); function main(conf) { const n = +conf.n; diff --git a/benchmark/http2/respond-with-fd.js b/benchmark/http2/respond-with-fd.js index 2c4c767a96f7cc..a235bd87d51bcc 100644 --- a/benchmark/http2/respond-with-fd.js +++ b/benchmark/http2/respond-with-fd.js @@ -11,7 +11,7 @@ const bench = common.createBenchmark(main, { requests: [100, 1000, 10000, 100000, 1000000], streams: [100, 200, 1000], clients: [1, 2] -}, { flags: ['--expose-http2', '--no-warnings'] }); +}, { flags: ['--no-warnings'] }); function main(conf) { diff --git a/benchmark/http2/simple.js b/benchmark/http2/simple.js index d0674fd95231b6..8d7767197bc30e 100644 --- a/benchmark/http2/simple.js +++ b/benchmark/http2/simple.js @@ -12,7 +12,7 @@ const bench = common.createBenchmark(main, { requests: [100, 1000, 10000, 100000], streams: [100, 200, 1000], clients: [1, 2] -}, { flags: ['--expose-http2', '--no-warnings'] }); +}, { flags: ['--no-warnings'] }); function main(conf) { const n = +conf.requests; diff --git a/benchmark/http2/write.js b/benchmark/http2/write.js index 20deff8930b296..e4f64cc05dedb3 100644 --- a/benchmark/http2/write.js +++ b/benchmark/http2/write.js @@ -7,7 +7,7 @@ const bench = common.createBenchmark(main, { streams: [100, 200, 1000], length: [64 * 1024, 128 * 1024, 256 * 1024, 1024 * 1024], size: [100000] -}, { flags: ['--expose-http2', '--no-warnings'] }); +}, { flags: ['--no-warnings'] }); function main(conf) { const m = +conf.streams; diff --git a/doc/api/cli.md b/doc/api/cli.md index 75cd1fcd81e632..e28614111cf873 100644 --- a/doc/api/cli.md +++ b/doc/api/cli.md @@ -432,6 +432,13 @@ added: v7.5.0 When set to `1`, process warnings are silenced. +### `NODE_NO_HTTP2=1` + + +When set to `1`, the `http2` module is suppressed. + ### `NODE_OPTIONS=options...`