maru / libmicrohttpd-http2

HTTP/2 support for libmicrohttpd
https://http2.s106.net/
Other
22 stars 6 forks source link

How to run HTTP1.1 and HTTP2.0 together #44

Closed nginxsantos closed 5 years ago

nginxsantos commented 5 years ago

I see that whether to support HTTP1.1 and HTTP2.0 is decided by the flag which is passed during start daemon, how can it be done on a connection basis. Say, our server (single instance) needs to support both HTTP1.1 and HTTP2.0.

If the client sends HTTP1.1, respond with HTTP1.1 . If it sends HTTP2.0 reply with HTTP2.0

Thoughts, please ?

Regards, Santos

maru commented 5 years ago

Done in a10fb740197d534b2c9ce0138feb4d28a14a0940