From bdb8e0e713165063e76a03de3fafac9451bcd207 Mon Sep 17 00:00:00 2001 From: James M Snell Date: Thu, 21 Sep 2017 10:07:56 -0700 Subject: [PATCH] http2: make --expose-http2 flag a non-op Make the `http2` module always available. The `--expose-http2` cli flag is made a non-op --- doc/api/cli.md | 7 ------- doc/api/http2.md | 3 --- doc/node.1 | 4 ---- lib/internal/bootstrap_node.js | 3 --- lib/internal/module.js | 6 +----- src/node.cc | 8 ++------ src/node_config.cc | 3 --- src/node_internals.h | 2 -- test/parallel/test-http2-binding.js | 1 - test/parallel/test-http2-client-data-end.js | 1 - test/parallel/test-http2-client-destroy-before-connect.js | 1 - test/parallel/test-http2-client-destroy-before-request.js | 1 - test/parallel/test-http2-client-destroy-goaway.js | 1 - test/parallel/test-http2-client-destroy.js | 1 - test/parallel/test-http2-client-onconnect-errors.js | 1 - .../parallel/test-http2-client-priority-before-connect.js | 1 - test/parallel/test-http2-client-promisify-connect.js | 1 - test/parallel/test-http2-client-request-options-errors.js | 1 - .../test-http2-client-rststream-before-connect.js | 1 - test/parallel/test-http2-client-set-priority.js | 1 - .../parallel/test-http2-client-settings-before-connect.js | 1 - .../parallel/test-http2-client-shutdown-before-connect.js | 1 - test/parallel/test-http2-client-socket-destroy.js | 1 - .../test-http2-client-stream-destroy-before-connect.js | 1 - test/parallel/test-http2-client-unescaped-path.js | 1 - test/parallel/test-http2-client-upload.js | 1 - test/parallel/test-http2-client-write-before-connect.js | 1 - test/parallel/test-http2-compat-errors.js | 2 +- test/parallel/test-http2-compat-expect-continue-check.js | 1 - test/parallel/test-http2-compat-expect-continue.js | 1 - test/parallel/test-http2-compat-expect-handling.js | 1 - test/parallel/test-http2-compat-method-connect.js | 1 - test/parallel/test-http2-compat-serverrequest-end.js | 1 - test/parallel/test-http2-compat-serverrequest-headers.js | 1 - .../test-http2-compat-serverrequest-settimeout.js | 1 - test/parallel/test-http2-compat-serverrequest-trailers.js | 1 - test/parallel/test-http2-compat-serverrequest.js | 1 - test/parallel/test-http2-compat-serverresponse-close.js | 2 +- ...test-http2-compat-serverresponse-createpushresponse.js | 1 - test/parallel/test-http2-compat-serverresponse-destroy.js | 1 - test/parallel/test-http2-compat-serverresponse-end.js | 1 - .../parallel/test-http2-compat-serverresponse-finished.js | 1 - .../test-http2-compat-serverresponse-flushheaders.js | 1 - test/parallel/test-http2-compat-serverresponse-headers.js | 1 - .../test-http2-compat-serverresponse-settimeout.js | 1 - .../test-http2-compat-serverresponse-statuscode.js | 1 - ...p2-compat-serverresponse-statusmessage-property-set.js | 1 - ...-http2-compat-serverresponse-statusmessage-property.js | 1 - .../test-http2-compat-serverresponse-statusmessage.js | 1 - .../parallel/test-http2-compat-serverresponse-trailers.js | 1 - .../test-http2-compat-serverresponse-write-no-cb.js | 1 - .../test-http2-compat-serverresponse-writehead.js | 1 - test/parallel/test-http2-connect-method.js | 1 - test/parallel/test-http2-connect.js | 1 - test/parallel/test-http2-cookies.js | 1 - test/parallel/test-http2-create-client-connect.js | 1 - test/parallel/test-http2-create-client-secure-session.js | 1 - test/parallel/test-http2-create-client-session.js | 1 - test/parallel/test-http2-createsecureserver-nooptions.js | 1 - test/parallel/test-http2-createwritereq.js | 1 - test/parallel/test-http2-date-header.js | 1 - test/parallel/test-http2-dont-override.js | 1 - test/parallel/test-http2-getpackedsettings.js | 1 - test/parallel/test-http2-goaway-opaquedata.js | 1 - test/parallel/test-http2-head-request.js | 1 - test/parallel/test-http2-https-fallback.js | 1 - test/parallel/test-http2-info-headers.js | 1 - test/parallel/test-http2-max-concurrent-streams.js | 1 - test/parallel/test-http2-methods.js | 1 - test/parallel/test-http2-misused-pseudoheaders.js | 1 - test/parallel/test-http2-multi-content-length.js | 1 - test/parallel/test-http2-multiheaders-raw.js | 1 - test/parallel/test-http2-multiheaders.js | 1 - test/parallel/test-http2-multiplex.js | 1 - test/parallel/test-http2-noflag.js | 8 -------- .../test-http2-options-max-headers-block-length.js | 1 - test/parallel/test-http2-options-max-reserved-streams.js | 1 - test/parallel/test-http2-padding-callback.js | 1 - test/parallel/test-http2-priority-event.js | 1 - test/parallel/test-http2-request-response-proto.js | 1 - test/parallel/test-http2-respond-file-204.js | 1 - test/parallel/test-http2-respond-file-304.js | 1 - test/parallel/test-http2-respond-file-404.js | 1 - test/parallel/test-http2-respond-file-compat.js | 1 - test/parallel/test-http2-respond-file-error-dir.js | 1 - test/parallel/test-http2-respond-file-errors.js | 1 - test/parallel/test-http2-respond-file-fd-errors.js | 1 - test/parallel/test-http2-respond-file-fd-invalid.js | 1 - test/parallel/test-http2-respond-file-fd-range.js | 1 - test/parallel/test-http2-respond-file-fd.js | 1 - test/parallel/test-http2-respond-file-push.js | 1 - test/parallel/test-http2-respond-file-range.js | 1 - test/parallel/test-http2-respond-file.js | 1 - test/parallel/test-http2-respond-no-data.js | 1 - test/parallel/test-http2-response-splitting.js | 1 - test/parallel/test-http2-serve-file.js | 1 - .../test-http2-server-destroy-before-additional.js | 1 - .../parallel/test-http2-server-destroy-before-priority.js | 1 - test/parallel/test-http2-server-destroy-before-push.js | 1 - test/parallel/test-http2-server-destroy-before-respond.js | 1 - test/parallel/test-http2-server-destroy-before-rst.js | 1 - test/parallel/test-http2-server-destroy-before-state.js | 1 - test/parallel/test-http2-server-destroy-before-write.js | 1 - test/parallel/test-http2-server-errors.js | 2 +- test/parallel/test-http2-server-push-disabled.js | 1 - .../parallel/test-http2-server-push-stream-errors-args.js | 1 - test/parallel/test-http2-server-push-stream-errors.js | 1 - test/parallel/test-http2-server-push-stream-head.js | 1 - test/parallel/test-http2-server-push-stream.js | 1 - test/parallel/test-http2-server-rst-before-respond.js | 1 - test/parallel/test-http2-server-rst-stream.js | 1 - test/parallel/test-http2-server-set-header.js | 1 - test/parallel/test-http2-server-settimeout-no-callback.js | 1 - .../parallel/test-http2-server-shutdown-before-respond.js | 1 - test/parallel/test-http2-server-socket-destroy.js | 1 - test/parallel/test-http2-server-socketerror.js | 1 - test/parallel/test-http2-server-startup.js | 1 - test/parallel/test-http2-server-timeout.js | 1 - test/parallel/test-http2-session-settings.js | 1 - test/parallel/test-http2-session-stream-state.js | 1 - test/parallel/test-http2-single-headers.js | 1 - test/parallel/test-http2-status-code-invalid.js | 1 - test/parallel/test-http2-status-code.js | 1 - test/parallel/test-http2-stream-client.js | 1 - test/parallel/test-http2-timeouts.js | 1 - test/parallel/test-http2-too-many-settings.js | 1 - test/parallel/test-http2-trailers.js | 1 - test/parallel/test-http2-util-asserts.js | 2 +- test/parallel/test-http2-util-headers-list.js | 2 +- test/parallel/test-http2-window-size.js | 1 - test/parallel/test-http2-withflag.js | 1 - test/parallel/test-http2-write-callbacks.js | 1 - test/parallel/test-http2-write-empty-string.js | 1 - test/parallel/test-http2-zero-length-write.js | 1 - test/sequential/test-http2-session-timeout.js | 1 - 135 files changed, 8 insertions(+), 167 deletions(-) delete mode 100644 test/parallel/test-http2-noflag.js diff --git a/doc/api/cli.md b/doc/api/cli.md index b23311281df807..7e21eacfe01406 100644 --- a/doc/api/cli.md +++ b/doc/api/cli.md @@ -171,13 +171,6 @@ added: v6.0.0 Silence all process warnings (including deprecations). -### `--expose-http2` - - -Enable the experimental `'http2'` module. - ### `--abort-on-uncaught-exception`