Browse Source

http2: make --expose-http2 flag a non-op

Make the `http2` module always available.
The `--expose-http2` cli flag is made a non-op

PR-URL: https://github.com/nodejs/node/pull/15535
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Ali Ijaz Sheikh <ofrobots@google.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
canary-base
James M Snell 7 years ago
committed by Ruben Bridgewater
parent
commit
f55ee6e24a
No known key found for this signature in database GPG Key ID: F07496B3EB3C1762
  1. 2
      benchmark/http2/headers.js
  2. 2
      benchmark/http2/respond-with-fd.js
  3. 2
      benchmark/http2/simple.js
  4. 2
      benchmark/http2/write.js
  5. 7
      doc/api/cli.md
  6. 3
      doc/api/http2.md
  7. 4
      doc/node.1
  8. 3
      lib/internal/bootstrap_node.js
  9. 6
      lib/internal/module.js
  10. 8
      src/node.cc
  11. 3
      src/node_config.cc
  12. 2
      src/node_internals.h
  13. 1
      test/parallel/test-http2-binding.js
  14. 1
      test/parallel/test-http2-client-data-end.js
  15. 1
      test/parallel/test-http2-client-destroy-before-connect.js
  16. 1
      test/parallel/test-http2-client-destroy-before-request.js
  17. 1
      test/parallel/test-http2-client-destroy-goaway.js
  18. 1
      test/parallel/test-http2-client-destroy.js
  19. 1
      test/parallel/test-http2-client-onconnect-errors.js
  20. 1
      test/parallel/test-http2-client-priority-before-connect.js
  21. 1
      test/parallel/test-http2-client-promisify-connect.js
  22. 1
      test/parallel/test-http2-client-request-options-errors.js
  23. 1
      test/parallel/test-http2-client-rststream-before-connect.js
  24. 1
      test/parallel/test-http2-client-set-priority.js
  25. 1
      test/parallel/test-http2-client-settings-before-connect.js
  26. 1
      test/parallel/test-http2-client-shutdown-before-connect.js
  27. 1
      test/parallel/test-http2-client-socket-destroy.js
  28. 1
      test/parallel/test-http2-client-stream-destroy-before-connect.js
  29. 1
      test/parallel/test-http2-client-unescaped-path.js
  30. 1
      test/parallel/test-http2-client-upload.js
  31. 1
      test/parallel/test-http2-client-write-before-connect.js
  32. 2
      test/parallel/test-http2-compat-errors.js
  33. 1
      test/parallel/test-http2-compat-expect-continue-check.js
  34. 1
      test/parallel/test-http2-compat-expect-continue.js
  35. 1
      test/parallel/test-http2-compat-expect-handling.js
  36. 1
      test/parallel/test-http2-compat-method-connect.js
  37. 1
      test/parallel/test-http2-compat-serverrequest-end.js
  38. 1
      test/parallel/test-http2-compat-serverrequest-headers.js
  39. 1
      test/parallel/test-http2-compat-serverrequest-pause.js
  40. 1
      test/parallel/test-http2-compat-serverrequest-pipe.js
  41. 1
      test/parallel/test-http2-compat-serverrequest-settimeout.js
  42. 1
      test/parallel/test-http2-compat-serverrequest-trailers.js
  43. 1
      test/parallel/test-http2-compat-serverrequest.js
  44. 2
      test/parallel/test-http2-compat-serverresponse-close.js
  45. 1
      test/parallel/test-http2-compat-serverresponse-createpushresponse.js
  46. 1
      test/parallel/test-http2-compat-serverresponse-destroy.js
  47. 1
      test/parallel/test-http2-compat-serverresponse-drain.js
  48. 1
      test/parallel/test-http2-compat-serverresponse-end.js
  49. 1
      test/parallel/test-http2-compat-serverresponse-finished.js
  50. 1
      test/parallel/test-http2-compat-serverresponse-flushheaders.js
  51. 1
      test/parallel/test-http2-compat-serverresponse-headers.js
  52. 1
      test/parallel/test-http2-compat-serverresponse-settimeout.js
  53. 1
      test/parallel/test-http2-compat-serverresponse-statuscode.js
  54. 1
      test/parallel/test-http2-compat-serverresponse-statusmessage-property-set.js
  55. 1
      test/parallel/test-http2-compat-serverresponse-statusmessage-property.js
  56. 1
      test/parallel/test-http2-compat-serverresponse-statusmessage.js
  57. 1
      test/parallel/test-http2-compat-serverresponse-trailers.js
  58. 1
      test/parallel/test-http2-compat-serverresponse-write-no-cb.js
  59. 1
      test/parallel/test-http2-compat-serverresponse-writehead.js
  60. 1
      test/parallel/test-http2-connect-method.js
  61. 1
      test/parallel/test-http2-connect.js
  62. 1
      test/parallel/test-http2-cookies.js
  63. 1
      test/parallel/test-http2-create-client-connect.js
  64. 1
      test/parallel/test-http2-create-client-secure-session.js
  65. 1
      test/parallel/test-http2-create-client-session.js
  66. 1
      test/parallel/test-http2-createsecureserver-nooptions.js
  67. 1
      test/parallel/test-http2-createwritereq.js
  68. 1
      test/parallel/test-http2-date-header.js
  69. 1
      test/parallel/test-http2-dont-override.js
  70. 1
      test/parallel/test-http2-getpackedsettings.js
  71. 1
      test/parallel/test-http2-goaway-opaquedata.js
  72. 1
      test/parallel/test-http2-head-request.js
  73. 1
      test/parallel/test-http2-https-fallback.js
  74. 1
      test/parallel/test-http2-info-headers.js
  75. 1
      test/parallel/test-http2-max-concurrent-streams.js
  76. 1
      test/parallel/test-http2-methods.js
  77. 1
      test/parallel/test-http2-misused-pseudoheaders.js
  78. 1
      test/parallel/test-http2-multi-content-length.js
  79. 1
      test/parallel/test-http2-multiheaders-raw.js
  80. 1
      test/parallel/test-http2-multiheaders.js
  81. 1
      test/parallel/test-http2-multiplex.js
  82. 8
      test/parallel/test-http2-noflag.js
  83. 1
      test/parallel/test-http2-options-max-headers-block-length.js
  84. 1
      test/parallel/test-http2-options-max-reserved-streams.js
  85. 1
      test/parallel/test-http2-padding-callback.js
  86. 1
      test/parallel/test-http2-priority-event.js
  87. 1
      test/parallel/test-http2-request-response-proto.js
  88. 1
      test/parallel/test-http2-respond-file-204.js
  89. 1
      test/parallel/test-http2-respond-file-304.js
  90. 1
      test/parallel/test-http2-respond-file-404.js
  91. 1
      test/parallel/test-http2-respond-file-compat.js
  92. 1
      test/parallel/test-http2-respond-file-error-dir.js
  93. 1
      test/parallel/test-http2-respond-file-errors.js
  94. 1
      test/parallel/test-http2-respond-file-fd-errors.js
  95. 1
      test/parallel/test-http2-respond-file-fd-invalid.js
  96. 1
      test/parallel/test-http2-respond-file-fd-range.js
  97. 1
      test/parallel/test-http2-respond-file-fd.js
  98. 1
      test/parallel/test-http2-respond-file-push.js
  99. 1
      test/parallel/test-http2-respond-file-range.js
  100. 1
      test/parallel/test-http2-respond-file.js

2
benchmark/http2/headers.js

@ -6,7 +6,7 @@ const PORT = common.PORT;
const bench = common.createBenchmark(main, { const bench = common.createBenchmark(main, {
n: [1e3], n: [1e3],
nheaders: [0, 10, 100, 1000], nheaders: [0, 10, 100, 1000],
}, { flags: ['--expose-http2', '--no-warnings'] }); }, { flags: ['--no-warnings'] });
function main(conf) { function main(conf) {
const n = +conf.n; const n = +conf.n;

2
benchmark/http2/respond-with-fd.js

@ -11,7 +11,7 @@ const bench = common.createBenchmark(main, {
requests: [100, 1000, 10000, 100000, 1000000], requests: [100, 1000, 10000, 100000, 1000000],
streams: [100, 200, 1000], streams: [100, 200, 1000],
clients: [1, 2] clients: [1, 2]
}, { flags: ['--expose-http2', '--no-warnings'] }); }, { flags: ['--no-warnings'] });
function main(conf) { function main(conf) {

2
benchmark/http2/simple.js

@ -12,7 +12,7 @@ const bench = common.createBenchmark(main, {
requests: [100, 1000, 10000, 100000], requests: [100, 1000, 10000, 100000],
streams: [100, 200, 1000], streams: [100, 200, 1000],
clients: [1, 2] clients: [1, 2]
}, { flags: ['--expose-http2', '--no-warnings'] }); }, { flags: ['--no-warnings'] });
function main(conf) { function main(conf) {
const n = +conf.requests; const n = +conf.requests;

2
benchmark/http2/write.js

@ -6,7 +6,7 @@ const PORT = common.PORT;
const bench = common.createBenchmark(main, { const bench = common.createBenchmark(main, {
streams: [100, 200, 1000], streams: [100, 200, 1000],
length: [64 * 1024, 128 * 1024, 256 * 1024, 1024 * 1024], length: [64 * 1024, 128 * 1024, 256 * 1024, 1024 * 1024],
}, { flags: ['--expose-http2', '--no-warnings'] }); }, { flags: ['--no-warnings'] });
function main(conf) { function main(conf) {
const m = +conf.streams; const m = +conf.streams;

7
doc/api/cli.md

@ -175,13 +175,6 @@ added: v6.0.0
Silence all process warnings (including deprecations). Silence all process warnings (including deprecations).
### `--expose-http2`
<!-- YAML
added: v8.4.0
-->
Enable the experimental `'http2'` module.
### `--abort-on-uncaught-exception` ### `--abort-on-uncaught-exception`
<!-- YAML <!-- YAML
added: v0.10 added: v0.10

3
doc/api/http2.md

@ -9,9 +9,6 @@ can be accessed using:
const http2 = require('http2'); const http2 = require('http2');
``` ```
*Note*: Node.js must be launched with the `--expose-http2` command line flag
in order to use the `'http2'` module.
## Core API ## Core API
The Core API provides a low-level interface designed specifically around The Core API provides a low-level interface designed specifically around

4
doc/node.1

@ -130,10 +130,6 @@ Emit pending deprecation warnings.
.BR \-\-no\-warnings .BR \-\-no\-warnings
Silence all process warnings (including deprecations). Silence all process warnings (including deprecations).
.TP
.BR \-\-expose\-http2
Enable the experimental `'http2'` module.
.TP .TP
.BR \-\-napi\-modules .BR \-\-napi\-modules
Enable loading native modules compiled with the ABI-stable Node.js API (N-API) Enable loading native modules compiled with the ABI-stable Node.js API (N-API)

3
lib/internal/bootstrap_node.js

@ -510,9 +510,6 @@
const config = process.binding('config'); const config = process.binding('config');
if (!config.exposeHTTP2)
delete NativeModule._source.http2;
NativeModule.require = function(id) { NativeModule.require = function(id) {
if (id === 'native_module') { if (id === 'native_module') {
return NativeModule; return NativeModule;

6
lib/internal/module.js

@ -78,15 +78,11 @@ function stripShebang(content) {
const builtinLibs = [ const builtinLibs = [
'assert', 'async_hooks', 'buffer', 'child_process', 'cluster', 'crypto', 'assert', 'async_hooks', 'buffer', 'child_process', 'cluster', 'crypto',
'dgram', 'dns', 'domain', 'events', 'fs', 'http', 'https', 'net', 'dgram', 'dns', 'domain', 'events', 'fs', 'http', 'http2', 'https', 'net',
'os', 'path', 'perf_hooks', 'punycode', 'querystring', 'readline', 'repl', 'os', 'path', 'perf_hooks', 'punycode', 'querystring', 'readline', 'repl',
'stream', 'string_decoder', 'tls', 'tty', 'url', 'util', 'v8', 'vm', 'zlib' 'stream', 'string_decoder', 'tls', 'tty', 'url', 'util', 'v8', 'vm', 'zlib'
]; ];
const { exposeHTTP2 } = process.binding('config');
if (exposeHTTP2)
builtinLibs.push('http2');
function addBuiltinLibsToObject(object) { function addBuiltinLibsToObject(object) {
// Make built-in modules available directly (loaded lazily). // Make built-in modules available directly (loaded lazily).
builtinLibs.forEach((name) => { builtinLibs.forEach((name) => {

8
src/node.cc

@ -244,9 +244,6 @@ std::string config_warning_file; // NOLINT(runtime/string)
// that is used by lib/internal/bootstrap_node.js // that is used by lib/internal/bootstrap_node.js
bool config_expose_internals = false; bool config_expose_internals = false;
// Set in node.cc by ParseArgs when --expose-http2 is used.
bool config_expose_http2 = false;
bool v8_initialized = false; bool v8_initialized = false;
bool linux_at_secure = false; bool linux_at_secure = false;
@ -3801,7 +3798,6 @@ static void PrintHelp() {
" --abort-on-uncaught-exception\n" " --abort-on-uncaught-exception\n"
" aborting instead of exiting causes a\n" " aborting instead of exiting causes a\n"
" core file to be generated for analysis\n" " core file to be generated for analysis\n"
" --expose-http2 enable experimental HTTP2 support\n"
" --trace-warnings show stack traces on process warnings\n" " --trace-warnings show stack traces on process warnings\n"
" --redirect-warnings=file\n" " --redirect-warnings=file\n"
" write warnings to file instead of\n" " write warnings to file instead of\n"
@ -3925,7 +3921,7 @@ static void CheckIfAllowedInEnv(const char* exe, bool is_env,
"--pending-deprecation", "--pending-deprecation",
"--no-warnings", "--no-warnings",
"--napi-modules", "--napi-modules",
"--expose-http2", "--expose-http2", // keep as a non-op through v9.x
"--trace-warnings", "--trace-warnings",
"--redirect-warnings", "--redirect-warnings",
"--trace-sync-io", "--trace-sync-io",
@ -4127,7 +4123,7 @@ static void ParseArgs(int* argc,
config_expose_internals = true; config_expose_internals = true;
} else if (strcmp(arg, "--expose-http2") == 0 || } else if (strcmp(arg, "--expose-http2") == 0 ||
strcmp(arg, "--expose_http2") == 0) { strcmp(arg, "--expose_http2") == 0) {
config_expose_http2 = true; // Keep as a non-op through v9.x
} else if (strcmp(arg, "-") == 0) { } else if (strcmp(arg, "-") == 0) {
break; break;
} else if (strcmp(arg, "--") == 0) { } else if (strcmp(arg, "--") == 0) {

3
src/node_config.cc

@ -74,9 +74,6 @@ static void InitConfig(Local<Object> target,
if (config_expose_internals) if (config_expose_internals)
READONLY_BOOLEAN_PROPERTY("exposeInternals"); READONLY_BOOLEAN_PROPERTY("exposeInternals");
if (config_expose_http2)
READONLY_BOOLEAN_PROPERTY("exposeHTTP2");
READONLY_PROPERTY(target, READONLY_PROPERTY(target,
"bits", "bits",
Number::New(env->isolate(), 8 * sizeof(intptr_t))); Number::New(env->isolate(), 8 * sizeof(intptr_t)));

2
src/node_internals.h

@ -86,8 +86,6 @@ extern std::string openssl_config;
// that is used by lib/module.js // that is used by lib/module.js
extern bool config_preserve_symlinks; extern bool config_preserve_symlinks;
// Set in node.cc by ParseArgs when --expose-http2 is used.
extern bool config_expose_http2;
// Set in node.cc by ParseArgs when --experimental-modules is used. // Set in node.cc by ParseArgs when --experimental-modules is used.
// Used in node_config.cc to set a constant on process.binding('config') // Used in node_config.cc to set a constant on process.binding('config')
// that is used by lib/module.js // that is used by lib/module.js

1
test/parallel/test-http2-binding.js

@ -1,4 +1,3 @@
// Flags: --expose-http2
'use strict'; 'use strict';
const common = require('../common'); const common = require('../common');

1
test/parallel/test-http2-client-data-end.js

@ -1,4 +1,3 @@
// Flags: --expose-http2
'use strict'; 'use strict';
const common = require('../common'); const common = require('../common');

1
test/parallel/test-http2-client-destroy-before-connect.js

@ -1,4 +1,3 @@
// Flags: --expose-http2
'use strict'; 'use strict';
const common = require('../common'); const common = require('../common');

1
test/parallel/test-http2-client-destroy-before-request.js

@ -1,4 +1,3 @@
// Flags: --expose-http2
'use strict'; 'use strict';
const common = require('../common'); const common = require('../common');

1
test/parallel/test-http2-client-destroy-goaway.js

@ -1,4 +1,3 @@
// Flags: --expose-http2
'use strict'; 'use strict';
const common = require('../common'); const common = require('../common');

1
test/parallel/test-http2-client-destroy.js

@ -1,4 +1,3 @@
// Flags: --expose-http2
'use strict'; 'use strict';
const common = require('../common'); const common = require('../common');

1
test/parallel/test-http2-client-onconnect-errors.js

@ -1,4 +1,3 @@
// Flags: --expose-http2
'use strict'; 'use strict';
const { const {

1
test/parallel/test-http2-client-priority-before-connect.js

@ -1,4 +1,3 @@
// Flags: --expose-http2
'use strict'; 'use strict';
const common = require('../common'); const common = require('../common');

1
test/parallel/test-http2-client-promisify-connect.js

@ -1,4 +1,3 @@
// Flags: --expose-http2
'use strict'; 'use strict';
const common = require('../common'); const common = require('../common');

1
test/parallel/test-http2-client-request-options-errors.js

@ -1,4 +1,3 @@
// Flags: --expose-http2
'use strict'; 'use strict';
const common = require('../common'); const common = require('../common');

1
test/parallel/test-http2-client-rststream-before-connect.js

@ -1,4 +1,3 @@
// Flags: --expose-http2
'use strict'; 'use strict';
const common = require('../common'); const common = require('../common');

1
test/parallel/test-http2-client-set-priority.js

@ -1,4 +1,3 @@
// Flags: --expose-http2
'use strict'; 'use strict';
const common = require('../common'); const common = require('../common');

1
test/parallel/test-http2-client-settings-before-connect.js

@ -1,4 +1,3 @@
// Flags: --expose-http2
'use strict'; 'use strict';
const common = require('../common'); const common = require('../common');

1
test/parallel/test-http2-client-shutdown-before-connect.js

@ -1,4 +1,3 @@
// Flags: --expose-http2
'use strict'; 'use strict';
const common = require('../common'); const common = require('../common');

1
test/parallel/test-http2-client-socket-destroy.js

@ -1,4 +1,3 @@
// Flags: --expose-http2
'use strict'; 'use strict';
const common = require('../common'); const common = require('../common');

1
test/parallel/test-http2-client-stream-destroy-before-connect.js

@ -1,4 +1,3 @@
// Flags: --expose-http2
'use strict'; 'use strict';
const common = require('../common'); const common = require('../common');

1
test/parallel/test-http2-client-unescaped-path.js

@ -1,4 +1,3 @@
// Flags: --expose-http2
'use strict'; 'use strict';
const common = require('../common'); const common = require('../common');

1
test/parallel/test-http2-client-upload.js

@ -1,4 +1,3 @@
// Flags: --expose-http2
'use strict'; 'use strict';
// Verifies that uploading data from a client works // Verifies that uploading data from a client works

1
test/parallel/test-http2-client-write-before-connect.js

@ -1,4 +1,3 @@
// Flags: --expose-http2
'use strict'; 'use strict';
const common = require('../common'); const common = require('../common');

2
test/parallel/test-http2-compat-errors.js

@ -1,4 +1,4 @@
// Flags: --expose-http2 --expose-internals // Flags: --expose-internals
'use strict'; 'use strict';
const common = require('../common'); const common = require('../common');

1
test/parallel/test-http2-compat-expect-continue-check.js

@ -1,4 +1,3 @@
// Flags: --expose-http2
'use strict'; 'use strict';
const common = require('../common'); const common = require('../common');

1
test/parallel/test-http2-compat-expect-continue.js

@ -1,4 +1,3 @@
// Flags: --expose-http2
'use strict'; 'use strict';
const common = require('../common'); const common = require('../common');

1
test/parallel/test-http2-compat-expect-handling.js

@ -1,4 +1,3 @@
// Flags: --expose-http2
'use strict'; 'use strict';
const common = require('../common'); const common = require('../common');

1
test/parallel/test-http2-compat-method-connect.js

@ -1,4 +1,3 @@
// Flags: --expose-http2
'use strict'; 'use strict';
const common = require('../common'); const common = require('../common');

1
test/parallel/test-http2-compat-serverrequest-end.js

@ -1,4 +1,3 @@
// Flags: --expose-http2
'use strict'; 'use strict';
const common = require('../common'); const common = require('../common');

1
test/parallel/test-http2-compat-serverrequest-headers.js

@ -1,4 +1,3 @@
// Flags: --expose-http2
'use strict'; 'use strict';
const common = require('../common'); const common = require('../common');

1
test/parallel/test-http2-compat-serverrequest-pause.js

@ -1,4 +1,3 @@
// Flags: --expose-http2
'use strict'; 'use strict';
const common = require('../common'); const common = require('../common');

1
test/parallel/test-http2-compat-serverrequest-pipe.js

@ -1,4 +1,3 @@
// Flags: --expose-http2
'use strict'; 'use strict';
const common = require('../common'); const common = require('../common');

1
test/parallel/test-http2-compat-serverrequest-settimeout.js

@ -1,4 +1,3 @@
// Flags: --expose-http2
'use strict'; 'use strict';
const common = require('../common'); const common = require('../common');

1
test/parallel/test-http2-compat-serverrequest-trailers.js

@ -1,4 +1,3 @@
// Flags: --expose-http2
'use strict'; 'use strict';
const common = require('../common'); const common = require('../common');

1
test/parallel/test-http2-compat-serverrequest.js

@ -1,4 +1,3 @@
// Flags: --expose-http2
'use strict'; 'use strict';
const common = require('../common'); const common = require('../common');

2
test/parallel/test-http2-compat-serverresponse-close.js

@ -1,4 +1,4 @@
// Flags: --expose-http2 --expose-internals // Flags: --expose-internals
'use strict'; 'use strict';
const common = require('../common'); const common = require('../common');

1
test/parallel/test-http2-compat-serverresponse-createpushresponse.js

@ -1,4 +1,3 @@
// Flags: --expose-http2
'use strict'; 'use strict';
const common = require('../common'); const common = require('../common');

1
test/parallel/test-http2-compat-serverresponse-destroy.js

@ -1,4 +1,3 @@
// Flags: --expose-http2
'use strict'; 'use strict';
const common = require('../common'); const common = require('../common');

1
test/parallel/test-http2-compat-serverresponse-drain.js

@ -1,4 +1,3 @@
// Flags: --expose-http2
'use strict'; 'use strict';
const common = require('../common'); const common = require('../common');

1
test/parallel/test-http2-compat-serverresponse-end.js

@ -1,4 +1,3 @@
// Flags: --expose-http2
'use strict'; 'use strict';
const { mustCall, mustNotCall, hasCrypto, skip } = require('../common'); const { mustCall, mustNotCall, hasCrypto, skip } = require('../common');

1
test/parallel/test-http2-compat-serverresponse-finished.js

@ -1,4 +1,3 @@
// Flags: --expose-http2
'use strict'; 'use strict';
const common = require('../common'); const common = require('../common');

1
test/parallel/test-http2-compat-serverresponse-flushheaders.js

@ -1,4 +1,3 @@
// Flags: --expose-http2
'use strict'; 'use strict';
const common = require('../common'); const common = require('../common');

1
test/parallel/test-http2-compat-serverresponse-headers.js

@ -1,4 +1,3 @@
// Flags: --expose-http2
'use strict'; 'use strict';
const common = require('../common'); const common = require('../common');

1
test/parallel/test-http2-compat-serverresponse-settimeout.js

@ -1,4 +1,3 @@
// Flags: --expose-http2
'use strict'; 'use strict';
const common = require('../common'); const common = require('../common');

1
test/parallel/test-http2-compat-serverresponse-statuscode.js

@ -1,4 +1,3 @@
// Flags: --expose-http2
'use strict'; 'use strict';
const common = require('../common'); const common = require('../common');

1
test/parallel/test-http2-compat-serverresponse-statusmessage-property-set.js

@ -1,4 +1,3 @@
// Flags: --expose-http2
'use strict'; 'use strict';
const common = require('../common'); const common = require('../common');

1
test/parallel/test-http2-compat-serverresponse-statusmessage-property.js

@ -1,4 +1,3 @@
// Flags: --expose-http2
'use strict'; 'use strict';
const common = require('../common'); const common = require('../common');

1
test/parallel/test-http2-compat-serverresponse-statusmessage.js

@ -1,4 +1,3 @@
// Flags: --expose-http2
'use strict'; 'use strict';
const common = require('../common'); const common = require('../common');

1
test/parallel/test-http2-compat-serverresponse-trailers.js

@ -1,4 +1,3 @@
// Flags: --expose-http2
'use strict'; 'use strict';
const common = require('../common'); const common = require('../common');

1
test/parallel/test-http2-compat-serverresponse-write-no-cb.js

@ -1,4 +1,3 @@
// Flags: --expose-http2
'use strict'; 'use strict';
const { mustCall, const { mustCall,

1
test/parallel/test-http2-compat-serverresponse-writehead.js

@ -1,4 +1,3 @@
// Flags: --expose-http2
'use strict'; 'use strict';
const common = require('../common'); const common = require('../common');

1
test/parallel/test-http2-connect-method.js

@ -1,4 +1,3 @@
// Flags: --expose-http2
'use strict'; 'use strict';
const common = require('../common'); const common = require('../common');

1
test/parallel/test-http2-connect.js

@ -1,4 +1,3 @@
// Flags: --expose-http2
'use strict'; 'use strict';
const { mustCall, hasCrypto, skip, expectsError } = require('../common'); const { mustCall, hasCrypto, skip, expectsError } = require('../common');

1
test/parallel/test-http2-cookies.js

@ -1,4 +1,3 @@
// Flags: --expose-http2
'use strict'; 'use strict';
const common = require('../common'); const common = require('../common');

1
test/parallel/test-http2-create-client-connect.js

@ -1,4 +1,3 @@
// Flags: --expose-http2
'use strict'; 'use strict';
// Tests http2.connect() // Tests http2.connect()

1
test/parallel/test-http2-create-client-secure-session.js

@ -1,4 +1,3 @@
// Flags: --expose-http2
'use strict'; 'use strict';
const common = require('../common'); const common = require('../common');

1
test/parallel/test-http2-create-client-session.js

@ -1,4 +1,3 @@
// Flags: --expose-http2
'use strict'; 'use strict';
const common = require('../common'); const common = require('../common');

1
test/parallel/test-http2-createsecureserver-nooptions.js

@ -1,4 +1,3 @@
// Flags: --expose-http2
'use strict'; 'use strict';
const common = require('../common'); const common = require('../common');

1
test/parallel/test-http2-createwritereq.js

@ -1,4 +1,3 @@
// Flags: --expose-http2
'use strict'; 'use strict';
const common = require('../common'); const common = require('../common');

1
test/parallel/test-http2-date-header.js

@ -1,4 +1,3 @@
// Flags: --expose-http2
'use strict'; 'use strict';
const common = require('../common'); const common = require('../common');

1
test/parallel/test-http2-dont-override.js

@ -1,4 +1,3 @@
// Flags: --expose-http2
'use strict'; 'use strict';
const common = require('../common'); const common = require('../common');

1
test/parallel/test-http2-getpackedsettings.js

@ -1,4 +1,3 @@
// Flags: --expose-http2
'use strict'; 'use strict';
const common = require('../common'); const common = require('../common');

1
test/parallel/test-http2-goaway-opaquedata.js

@ -1,4 +1,3 @@
// Flags: --expose-http2
'use strict'; 'use strict';
const common = require('../common'); const common = require('../common');

1
test/parallel/test-http2-head-request.js

@ -1,4 +1,3 @@
// Flags: --expose-http2
'use strict'; 'use strict';
const common = require('../common'); const common = require('../common');

1
test/parallel/test-http2-https-fallback.js

@ -1,4 +1,3 @@
// Flags: --expose-http2
'use strict'; 'use strict';
const common = require('../common'); const common = require('../common');

1
test/parallel/test-http2-info-headers.js

@ -1,4 +1,3 @@
// Flags: --expose-http2
'use strict'; 'use strict';
const common = require('../common'); const common = require('../common');

1
test/parallel/test-http2-max-concurrent-streams.js

@ -1,4 +1,3 @@
// Flags: --expose-http2
'use strict'; 'use strict';
const common = require('../common'); const common = require('../common');

1
test/parallel/test-http2-methods.js

@ -1,4 +1,3 @@
// Flags: --expose-http2
'use strict'; 'use strict';
const common = require('../common'); const common = require('../common');

1
test/parallel/test-http2-misused-pseudoheaders.js

@ -1,4 +1,3 @@
// Flags: --expose-http2
'use strict'; 'use strict';
const common = require('../common'); const common = require('../common');

1
test/parallel/test-http2-multi-content-length.js

@ -1,4 +1,3 @@
// Flags: --expose-http2
'use strict'; 'use strict';
const common = require('../common'); const common = require('../common');

1
test/parallel/test-http2-multiheaders-raw.js

@ -1,4 +1,3 @@
// Flags: --expose-http2
'use strict'; 'use strict';
const common = require('../common'); const common = require('../common');

1
test/parallel/test-http2-multiheaders.js

@ -1,4 +1,3 @@
// Flags: --expose-http2
'use strict'; 'use strict';
const common = require('../common'); const common = require('../common');

1
test/parallel/test-http2-multiplex.js

@ -1,4 +1,3 @@
// Flags: --expose-http2
'use strict'; 'use strict';
// Tests opening 100 concurrent simultaneous uploading streams over a single // Tests opening 100 concurrent simultaneous uploading streams over a single

8
test/parallel/test-http2-noflag.js

@ -1,8 +0,0 @@
// The --expose-http2 flag is not set
'use strict';
require('../common');
const assert = require('assert');
assert.throws(() => require('http2'), // eslint-disable-line crypto-check
/^Error: Cannot find module 'http2'$/);

1
test/parallel/test-http2-options-max-headers-block-length.js

@ -1,4 +1,3 @@
// Flags: --expose-http2
'use strict'; 'use strict';
const common = require('../common'); const common = require('../common');

1
test/parallel/test-http2-options-max-reserved-streams.js

@ -1,4 +1,3 @@
// Flags: --expose-http2
'use strict'; 'use strict';
const common = require('../common'); const common = require('../common');

1
test/parallel/test-http2-padding-callback.js

@ -1,4 +1,3 @@
// Flags: --expose-http2
'use strict'; 'use strict';
const common = require('../common'); const common = require('../common');

1
test/parallel/test-http2-priority-event.js

@ -1,4 +1,3 @@
// Flags: --expose-http2
'use strict'; 'use strict';
const common = require('../common'); const common = require('../common');

1
test/parallel/test-http2-request-response-proto.js

@ -1,4 +1,3 @@
// Flags: --expose-http2
'use strict'; 'use strict';
const common = require('../common'); const common = require('../common');

1
test/parallel/test-http2-respond-file-204.js

@ -1,4 +1,3 @@
// Flags: --expose-http2
'use strict'; 'use strict';
const common = require('../common'); const common = require('../common');

1
test/parallel/test-http2-respond-file-304.js

@ -1,4 +1,3 @@
// Flags: --expose-http2
'use strict'; 'use strict';
const common = require('../common'); const common = require('../common');

1
test/parallel/test-http2-respond-file-404.js

@ -1,4 +1,3 @@
// Flags: --expose-http2
'use strict'; 'use strict';
const common = require('../common'); const common = require('../common');

1
test/parallel/test-http2-respond-file-compat.js

@ -1,4 +1,3 @@
// Flags: --expose-http2
'use strict'; 'use strict';
const common = require('../common'); const common = require('../common');

1
test/parallel/test-http2-respond-file-error-dir.js

@ -1,4 +1,3 @@
// Flags: --expose-http2
'use strict'; 'use strict';
const common = require('../common'); const common = require('../common');

1
test/parallel/test-http2-respond-file-errors.js

@ -1,4 +1,3 @@
// Flags: --expose-http2
'use strict'; 'use strict';
const common = require('../common'); const common = require('../common');

1
test/parallel/test-http2-respond-file-fd-errors.js

@ -1,4 +1,3 @@
// Flags: --expose-http2
'use strict'; 'use strict';
const common = require('../common'); const common = require('../common');

1
test/parallel/test-http2-respond-file-fd-invalid.js

@ -1,4 +1,3 @@
// Flags: --expose-http2
'use strict'; 'use strict';
const common = require('../common'); const common = require('../common');

1
test/parallel/test-http2-respond-file-fd-range.js

@ -1,4 +1,3 @@
// Flags: --expose-http2
'use strict'; 'use strict';
// Tests the ability to minimally request a byte range with respondWithFD // Tests the ability to minimally request a byte range with respondWithFD

1
test/parallel/test-http2-respond-file-fd.js

@ -1,4 +1,3 @@
// Flags: --expose-http2
'use strict'; 'use strict';
const common = require('../common'); const common = require('../common');

1
test/parallel/test-http2-respond-file-push.js

@ -1,4 +1,3 @@
// Flags: --expose-http2
'use strict'; 'use strict';
const common = require('../common'); const common = require('../common');

1
test/parallel/test-http2-respond-file-range.js

@ -1,4 +1,3 @@
// Flags: --expose-http2
'use strict'; 'use strict';
const common = require('../common'); const common = require('../common');

1
test/parallel/test-http2-respond-file.js

@ -1,4 +1,3 @@
// Flags: --expose-http2
'use strict'; 'use strict';
const common = require('../common'); const common = require('../common');

Some files were not shown because too many files changed in this diff

Loading…
Cancel
Save