dart-lang / http2

A HTTP/2 implementation for dart.

Home Page:https://pub.dev/packages/http2

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

What protocol ID(s) and negotiation(s) does this library support?

sethladd opened this issue · comments

And, I suppose this would be useful to add to the README, too. :)

Protocol negogiation: ALPN, direct
Protocol version: h2

This is already mentioned in the library documentation.

sorry for re-opening this,

but by reading the implementation code and comments I see that it does support the "UPGRADE" method to switch from HTTP1.1 to HTTP2

so why not add the "UPGRADE" as a protocol negotiation?

By protocol negotiation we specifically mean ALPN (application level protocol negotiation). This is only supported via the ALPN TLS extension and the protocol is negotiated before any http things are done.

Using a normal http/1.1 connection for a while and later on "upgrading" it to an http/2 connection (websockets are done in a similar way) is a different thing entirely and we have no explicit support for that atm.