diff options
author | Loïc Hoguin <[email protected]> | 2012-01-23 09:28:29 +0100 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2012-01-23 09:28:29 +0100 |
commit | 8622dff906a1bdddf588e1fe006307488a824d3a (patch) | |
tree | f957733116d115154a4b6602d18948acb0937398 /src/cowboy_http_protocol.erl | |
parent | 314483a0b6609873f5c215d24e662016374128ec (diff) | |
download | cowboy-8622dff906a1bdddf588e1fe006307488a824d3a.tar.gz cowboy-8622dff906a1bdddf588e1fe006307488a824d3a.tar.bz2 cowboy-8622dff906a1bdddf588e1fe006307488a824d3a.zip |
Rename the type http_version/0 to cowboy_http:version/0
Diffstat (limited to 'src/cowboy_http_protocol.erl')
-rw-r--r-- | src/cowboy_http_protocol.erl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cowboy_http_protocol.erl b/src/cowboy_http_protocol.erl index e4aaf27..48268a1 100644 --- a/src/cowboy_http_protocol.erl +++ b/src/cowboy_http_protocol.erl @@ -109,7 +109,7 @@ wait_request(State=#state{socket=Socket, transport=Transport, end. -spec request({http_request, cowboy_http:method(), cowboy_http:uri(), - http_version()}, #state{}) -> ok | none(). + cowboy_http:version()}, #state{}) -> ok | none(). request({http_request, _Method, _URI, Version}, State) when Version =/= {1, 0}, Version =/= {1, 1} -> error_terminate(505, State); @@ -422,7 +422,7 @@ terminate(#state{socket=Socket, transport=Transport}) -> %% Internal. --spec version_to_connection(http_version()) -> keepalive | close. +-spec version_to_connection(cowboy_http:version()) -> keepalive | close. version_to_connection({1, 1}) -> keepalive; version_to_connection(_Any) -> close. |