diff options
author | Pini Houri <pinhasph@gmail.com> | 2017-08-11 00:12:28 +0300 |
---|---|---|
committer | Benjamin Gruenbaum <benji@peer5.com> | 2017-08-16 12:58:59 +0300 |
commit | 3f5d944ace8b0a6ac2f4c76a5873a9bb6ec27b2f (patch) | |
tree | 3e7ed2c6624cd6656a9664e47c83bac09ce79035 /lib/http2.js | |
parent | eab2bea46fef091b8bf551eb9702b6da482048b3 (diff) | |
download | android-node-v8-3f5d944ace8b0a6ac2f4c76a5873a9bb6ec27b2f.tar.gz android-node-v8-3f5d944ace8b0a6ac2f4c76a5873a9bb6ec27b2f.tar.bz2 android-node-v8-3f5d944ace8b0a6ac2f4c76a5873a9bb6ec27b2f.zip |
http2: Expose Http2ServerRequest/Response
In order for express (and possibly other libraries) to get and use
the Http2ServerRequest/Response - expose them in the http2 exports.
Same as is done in http module.
PR-URL: https://github.com/nodejs/node/pull/14690
Ref: https://github.com/expressjs/express/issues/3390
Fixes: https://github.com/nodejs/node/issues/14672
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Diffstat (limited to 'lib/http2.js')
-rw-r--r-- | lib/http2.js | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/http2.js b/lib/http2.js index e964abf589..ab9e33b2a2 100644 --- a/lib/http2.js +++ b/lib/http2.js @@ -13,7 +13,9 @@ const { getUnpackedSettings, createServer, createSecureServer, - connect + connect, + Http2ServerRequest, + Http2ServerResponse, } = require('internal/http2/core'); module.exports = { @@ -23,5 +25,7 @@ module.exports = { getUnpackedSettings, createServer, createSecureServer, - connect + connect, + Http2ServerResponse, + Http2ServerRequest, }; |