You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
it doesnt work.
i try it with connect because express as far as i know doesnt support http2 yet.
varconnect=require('connect');varhttp2=require('http2');varfs=require('fs');varapp=connect();// gzip/deflate outgoing responsesvarcompression=require('compression');app.use(compression());// respond to all requestsapp.use(function(req,res){res.end('Hello from Connect!\n');});varoptions={key: fs.readFileSync('./localhost.key'),cert: fs.readFileSync('./localhost.crt'),passphrase: 'pass'};http2.createServer(options,app).listen(3000);
it ends with error this._implicitHeader is not a function
AFAIK it should work, because the http2 module has that method. Can you provide the full stack trace for that error and what version of the "http2" module you are using is?
890f2151c2be69c51db72017546d00fd commented on Mar 30, 2016
If you are interested in getting compatibility, I'd suggest making a pull request to http2 to add an alias to the singular form of the method name to match Node.js HTTP core.
Activity
dougwilson commentedon Mar 30, 2016
Hi! Does it not work? What issue does it have? Can you provide an example of how you are trying to use it?
We need a lot more information to be able to do anything :)
890f2151c2be69c51db72017546d00fd commentedon Mar 30, 2016
Hi
it doesnt work.
i try it with connect because express as far as i know doesnt support http2 yet.
it ends with error this._implicitHeader is not a function
dougwilson commentedon Mar 30, 2016
AFAIK it should work, because the http2 module has that method. Can you provide the full stack trace for that error and what version of the "http2" module you are using is?
890f2151c2be69c51db72017546d00fd commentedon Mar 30, 2016
here are console and debug log https://justpaste.it/srlc
"compression": "1.6.1",
"connect": "3.4.1",
"http2": "3.3.2",
dougwilson commentedon Mar 30, 2016
Oh, haha, I see now. They spelled it with a plural, which does not conform to compatibility with Node.js code: https://github.com/molnarg/node-http2/blob/master/lib/http.js#L738
If you are interested in getting compatibility, I'd suggest making a pull request to
http2to add an alias to the singular form of the method name to match Node.js HTTP core.890f2151c2be69c51db72017546d00fd commentedon Mar 30, 2016
thank you for your time/help
pull request in http2 created