ninenines / gun

HTTP/1.1, HTTP/2, Websocket client (and more) for Erlang/OTP.
ISC License
898 stars 231 forks source link

Gun CONNECT currently does not do ALPN #168

Closed essen closed 6 years ago

essen commented 6 years ago

I forgot about this when implementing, I suppose there was simply too many moving parts.

We need ALPN support on the proxied connection, and we should probably deprecate the protocol option in favor of a protocols similar to what we have for normal connections.

essen commented 6 years ago

I have pushed a fix. I think I will make a 1.3.0 release based on this + documenting some of the experimental interfaces Gun already has like content/ws handlers.