http2dotnet
http2dotnet copied to clipboard
Support HTTPS in CliClient
Hi, I hope you don't mind the unsolicited PR. I was exploring some HTTP2 options in C# and found your library. I wanted to get it working with SSL and managed to do so in your CliClient example.
Some Notes:
- I pulled in a .gitignore from here.
- I had to upgrade to netcoreapp2.2 because I needed support for ALPN in SslStream.
Thanks!
oh wait, i think your suggestion had the protocol backwards. let me fix that and test.
Fixed & tested. Here's where it's referenced in the spec.
The last one should have been right?
The string "h2c" identifies the protocol where HTTP/2 is run over cleartext TCP. This identifier is used in the HTTP/1.1 Upgrade header field and in any place where HTTP/2 over TCP is identified.
We are doing an upgrade, and cleartext TCP (since TLS always uses ALPN). So h2c should have been right?