Skip to content
This repository has been archived by the owner on Apr 26, 2021. It is now read-only.

Make it easier to set up HTTP/2 with an HTTP/1 fallback. #108

Closed
thosakwe opened this issue Jun 12, 2019 · 0 comments
Closed

Make it easier to set up HTTP/2 with an HTTP/1 fallback. #108

thosakwe opened this issue Jun 12, 2019 · 0 comments

Comments

@thosakwe
Copy link
Member

Currently, you need both an instance of AngelHttp2 and AngelHttp:

var http = AngelHttp(app);
var http2 = AngelHttp2(app, ...);
http2.onHttp1.listen(http.handleRequest);
await http2.startServer();

It should be easier to do this, perhaps behind an allowHttp1 flag:

var http2 = AngelHttp2(app, allowHttp1: true);
await http2.startServer();

Open to suggestions/comments!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant