aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2018-08-06 10:46:09 +0200
committerLoïc Hoguin <[email protected]>2018-08-06 10:46:09 +0200
commit820456b71fd3ce61df9d5f32280f42cf871ea80b (patch)
tree61f1279c171ca942bfcd23a13d7f2feed8f36cfd
parentc064c6d8fce7499b6ceda28f92199ef1661fb622 (diff)
downloadgun-820456b71fd3ce61df9d5f32280f42cf871ea80b.tar.gz
gun-820456b71fd3ce61df9d5f32280f42cf871ea80b.tar.bz2
gun-820456b71fd3ce61df9d5f32280f42cf871ea80b.zip
Fix some whitespace
-rw-r--r--src/gun.erl32
1 files changed, 16 insertions, 16 deletions
diff --git a/src/gun.erl b/src/gun.erl
index 75dc5b8..115f603 100644
--- a/src/gun.erl
+++ b/src/gun.erl
@@ -96,40 +96,40 @@
| {close, ws_close_code(), iodata()}.
-type opts() :: #{
- connect_timeout => timeout(),
- http_opts => http_opts(),
- http2_opts => http2_opts(),
- protocols => [http | http2],
- retry => non_neg_integer(),
- retry_timeout => pos_integer(),
- trace => boolean(),
- transport => tcp | tls | ssl,
- transport_opts => [gen_tcp:connect_option()] | [ssl:connect_option()],
- ws_opts => ws_opts()
+ connect_timeout => timeout(),
+ http_opts => http_opts(),
+ http2_opts => http2_opts(),
+ protocols => [http | http2],
+ retry => non_neg_integer(),
+ retry_timeout => pos_integer(),
+ trace => boolean(),
+ transport => tcp | tls | ssl,
+ transport_opts => [gen_tcp:connect_option()] | [ssl:connect_option()],
+ ws_opts => ws_opts()
}.
-export_type([opts/0]).
%% @todo Add an option to disable/enable the notowner behavior.
-type req_opts() :: #{
- reply_to => pid()
+ reply_to => pid()
}.
-export_type([req_opts/0]).
-type http_opts() :: #{
- keepalive => timeout(),
- transform_header_name => fun((binary()) -> binary()),
- version => 'HTTP/1.1' | 'HTTP/1.0'
+ keepalive => timeout(),
+ transform_header_name => fun((binary()) -> binary()),
+ version => 'HTTP/1.1' | 'HTTP/1.0'
}.
-export_type([http_opts/0]).
-type http2_opts() :: #{
- keepalive => timeout()
+ keepalive => timeout()
}.
-export_type([http2_opts/0]).
%% @todo keepalive
-type ws_opts() :: #{
- compress => boolean()
+ compress => boolean()
}.
-export_type([ws_opts/0]).