swhitty / FlyingFox

Lightweight, HTTP server written in Swift using async/await.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Does it have HTTP/2 support?

ConsoleTVs opened this issue · comments

First of all thanks for developing this amazing package!

I wanted to ask if it is possible to use http 2 with this package as I see the server is currently using HTTP/1.1.

Thanks for the great feedback @ConsoleTVs.

HTTP/2 is not on the roadmap yet. Mostly because of the lack of TLS support and most clients negotiate HTTP/2 in the TLS handshake.

FlyingFox could support upgrading to HTTP/2 Clear Text via Upgrade: h2c but I don't think there are many clients that utilise this upgrade. I don't believe URLSession supports upgrading this way, if it did then we would probably add it to the roadmap.