diff options
author | Loïc Hoguin <[email protected]> | 2020-07-17 12:25:11 +0200 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2020-09-21 15:51:56 +0200 |
commit | 510d49d8ef0a46e90374c3230f28b5354115293f (patch) | |
tree | 2260d16089803e9e6e9c3e9156e21f83b0eae81c /test/raw_SUITE.erl | |
parent | a093bf88e1740e4f89937d84cd4d5b26cb5b4e80 (diff) | |
download | gun-510d49d8ef0a46e90374c3230f28b5354115293f.tar.gz gun-510d49d8ef0a46e90374c3230f28b5354115293f.tar.bz2 gun-510d49d8ef0a46e90374c3230f28b5354115293f.zip |
Make gun:stream_info/2 return intermediaries for HTTP/2 CONNECT
Diffstat (limited to 'test/raw_SUITE.erl')
-rw-r--r-- | test/raw_SUITE.erl | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/test/raw_SUITE.erl b/test/raw_SUITE.erl index 9b836c0..c3eec1d 100644 --- a/test/raw_SUITE.erl +++ b/test/raw_SUITE.erl @@ -187,9 +187,13 @@ connect_raw_reply_to(_) -> receive {ReplyTo, ok} -> gun:close(ConnPid) after 1000 -> error(timeout) end. h2_connect_tcp_raw_tcp(_) -> - doc("Use HTTP/2 CONNECT over TCP to connect to a remote endpoint using the raw protocol over TCP."), + doc("Use CONNECT over clear HTTP/2 to connect to a remote endpoint using the raw protocol over TCP."), do_h2_connect_raw(tcp, tcp). +h2_connect_tls_raw_tcp(_) -> + doc("Use CONNECT over secure HTTP/2 to connect to a remote endpoint using the raw protocol over TCP."), + do_h2_connect_raw(tcp, tls). + do_h2_connect_raw(OriginTransport, ProxyTransport) -> {ok, OriginPid, OriginPort} = init_origin(OriginTransport, raw, fun do_echo/3), {ok, ProxyPid, ProxyPort} = rfc7540_SUITE:do_proxy_start(ProxyTransport, [ |