diff options
Diffstat (limited to 'test/gun_SUITE.erl')
-rw-r--r-- | test/gun_SUITE.erl | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/gun_SUITE.erl b/test/gun_SUITE.erl index 505f365..b9706a0 100644 --- a/test/gun_SUITE.erl +++ b/test/gun_SUITE.erl @@ -75,6 +75,12 @@ gone_reason(_) -> error(timeout) end. +info(_) -> + doc("Get info from the Gun connection."), + {ok, Pid} = gun:open("google.com", 443), + #{sock_ip := _, sock_port := _} = gun:info(Pid), + ok. + reply_to(_) -> doc("The reply_to option allows using a separate process for requests."), do_reply_to(http), |