diff options
author | Loïc Hoguin <[email protected]> | 2020-08-20 15:29:38 +0200 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2020-09-21 15:51:57 +0200 |
commit | e1de84585490e85166926416e4eb5cea95e0e604 (patch) | |
tree | ac01fc5c8d98818eb82fa4d3415db472857c4990 /src/gun_tls_proxy_http2_connect.erl | |
parent | ca68d184abbf7bd1030b2f2035cc66c13d08dd5d (diff) | |
download | gun-e1de84585490e85166926416e4eb5cea95e0e604.tar.gz gun-e1de84585490e85166926416e4eb5cea95e0e604.tar.bz2 gun-e1de84585490e85166926416e4eb5cea95e0e604.zip |
Add gun_tunnel_up message to HTTP/2 CONNECT
Diffstat (limited to 'src/gun_tls_proxy_http2_connect.erl')
-rw-r--r-- | src/gun_tls_proxy_http2_connect.erl | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/gun_tls_proxy_http2_connect.erl b/src/gun_tls_proxy_http2_connect.erl index e70454a..c423571 100644 --- a/src/gun_tls_proxy_http2_connect.erl +++ b/src/gun_tls_proxy_http2_connect.erl @@ -24,14 +24,18 @@ -export([close/1]). -type socket() :: #{ + %% The pid of the Gun connection. + gun_pid := pid(), + + %% The pid of the process that gets replies for this tunnel. reply_to := pid(), + + %% The full stream reference for this tunnel. stream_ref := reference() | [reference()] }. name() -> tls_proxy_http2_connect. -%% We need different message tags because the messages -%% must be propagated to the right stream. messages() -> {tls_proxy_http2_connect, tls_proxy_http2_connect_closed, tls_proxy_http2_connect_error}. -spec connect(_, _, _) -> no_return(). @@ -49,7 +53,7 @@ send(#{gun_pid := GunPid, reply_to := ReplyTo, stream_ref := StreamRef}, Data) - -spec setopts(_, _) -> no_return(). setopts(_, _) -> -% error(not_implemented). + %% We send messages automatically regardless of active mode. ok. -spec sockname(_) -> no_return(). |