diff options
author | Loïc Hoguin <[email protected]> | 2017-10-25 20:17:21 +0100 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2017-10-25 21:03:26 +0100 |
commit | ef58e15547ee171a716eaa768374e2e7e2f7d397 (patch) | |
tree | 0871f7f142014592f581f7c1a9705eb95d65dc2a /test/cowboy_test.erl | |
parent | 4090adaecc6ba30eeeabf50aee57c22945fa27eb (diff) | |
download | cowboy-ef58e15547ee171a716eaa768374e2e7e2f7d397.tar.gz cowboy-ef58e15547ee171a716eaa768374e2e7e2f7d397.tar.bz2 cowboy-ef58e15547ee171a716eaa768374e2e7e2f7d397.zip |
Introduce cowboy_req:sock/1 and cowboy_req:cert/1
To obtain the local socket ip/port and the client TLS
certificate, respectively.
Diffstat (limited to 'test/cowboy_test.erl')
-rw-r--r-- | test/cowboy_test.erl | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/cowboy_test.erl b/test/cowboy_test.erl index bdae7e4..31cba63 100644 --- a/test/cowboy_test.erl +++ b/test/cowboy_test.erl @@ -110,6 +110,7 @@ gun_open(Config, Opts) -> {ok, ConnPid} = gun:open("localhost", config(port, Config), Opts#{ retry => 0, transport => config(type, Config), + transport_opts => proplists:get_value(transport_opts, Config, []), protocols => [config(protocol, Config)] }), ConnPid. |