erikdubbelboer / fasthttp

This fork has been deprecated!
MIT License
50 stars 12 forks source link

Questions about HTTP/2 implementation methods. #50

Closed dgrr closed 4 years ago

dgrr commented 6 years ago

Hello,

I am developing HTTP/2 for fasthttp a week ago and I am finding some troubles. My implementation consists of integrating HTTP/2 protocol inside fasthttp and making user choose if he/she wants HTTP/2 enabled or not by using boolean var in Server. All goes well until now... To make this implementation possible I do the following:

At this point I am confused with the current implementation. I want to reuse all the code as much as I can but I see that the best way to make HTTP/2 possible in fasthttp is by making a new package (or subpackage) implementing this protocol (as net/http has) or making a radical change of the library.

There are two ways:

What do you think or what do you prefer?

erikdubbelboer commented 6 years ago

It's hard for me to reason about this as I have no idea what kind of changes would be required to the code. Would a subpackage and making Server.tlsConfig public be enough? What would the interface for this subpackage be?

dgrr commented 6 years ago

Okay. I created new repository to implement HTTP/2 protocol and to be compatible with your fork @erikdubbelboer

erikdubbelboer commented 6 years ago

Ok I added myself as Watcher so I can see your commits.