aboutsummaryrefslogtreecommitdiffstats
path: root/src/cowboy.erl
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2013-05-16 16:06:52 +0200
committerLoïc Hoguin <[email protected]>2013-05-16 16:06:52 +0200
commitc0c333e41bcd7d89a48a5c35d8e21b305c35627e (patch)
tree11b0656c8a69baf3a175b543cffda7f10a4153c8 /src/cowboy.erl
parentba7e6c07ecfb24464bf83825dc4d749fd378c78b (diff)
downloadcowboy-c0c333e41bcd7d89a48a5c35d8e21b305c35627e.tar.gz
cowboy-c0c333e41bcd7d89a48a5c35d8e21b305c35627e.tar.bz2
cowboy-c0c333e41bcd7d89a48a5c35d8e21b305c35627e.zip
Move cowboy_http:version() to cowboy:http_version()
Diffstat (limited to 'src/cowboy.erl')
-rw-r--r--src/cowboy.erl3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/cowboy.erl b/src/cowboy.erl
index 257172d..d9e32e7 100644
--- a/src/cowboy.erl
+++ b/src/cowboy.erl
@@ -20,6 +20,9 @@
-export([stop_listener/1]).
-export([set_env/3]).
+-type http_version() :: 'HTTP/1.1' | 'HTTP/1.0'.
+-export_type([http_version/0]).
+
%% @doc Start an HTTP listener.
-spec start_http(any(), non_neg_integer(), any(), any()) -> {ok, pid()}.
start_http(Ref, NbAcceptors, TransOpts, ProtoOpts)