-
-
Notifications
You must be signed in to change notification settings - Fork 239
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
support for http2 #77
Comments
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 :) |
Hi it doesnt work. var connect = require('connect');
var http2 = require('http2');
var fs = require('fs');
var app = connect();
// gzip/deflate outgoing responses
var compression = require('compression');
app.use(compression());
// respond to all requests
app.use(function(req, res){
res.end('Hello from Connect!\n');
});
var options = {
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? |
here are console and debug log https://justpaste.it/srlc |
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 |
thank you for your time/help |
it would be nice use this module with http2.
The text was updated successfully, but these errors were encountered: