diff options
author | Loïc Hoguin <[email protected]> | 2013-05-16 16:29:24 +0200 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2013-05-16 16:29:24 +0200 |
commit | df73a4d0a5cedf6e14ed148e53ba4caac4f27c74 (patch) | |
tree | cd95d8b7fd92079d790ebf9a469f66a870383553 /src/cowboy_protocol.erl | |
parent | f8a78561271fb1c09008a31d46ac8d5987d9f83e (diff) | |
download | cowboy-df73a4d0a5cedf6e14ed148e53ba4caac4f27c74.tar.gz cowboy-df73a4d0a5cedf6e14ed148e53ba4caac4f27c74.tar.bz2 cowboy-df73a4d0a5cedf6e14ed148e53ba4caac4f27c74.zip |
Move cowboy_http:status() to cowboy:http_status()
Diffstat (limited to 'src/cowboy_protocol.erl')
-rw-r--r-- | src/cowboy_protocol.erl | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/cowboy_protocol.erl b/src/cowboy_protocol.erl index 41a3c06..0bcf5a1 100644 --- a/src/cowboy_protocol.erl +++ b/src/cowboy_protocol.erl @@ -58,7 +58,7 @@ -type onrequest_fun() :: fun((Req) -> Req). -type onresponse_fun() :: - fun((cowboy_http:status(), cowboy:http_headers(), iodata(), Req) -> Req). + fun((cowboy:http_status(), cowboy:http_headers(), iodata(), Req) -> Req). -export_type([onrequest_fun/0]). -export_type([onresponse_fun/0]). @@ -565,7 +565,7 @@ next_request(Req, State=#state{req_keepalive=Keepalive, timeout=Timeout}, end. %% Only send an error reply if there is no resp_sent message. --spec error_terminate(cowboy_http:status(), cowboy_req:req(), #state{}) -> ok. +-spec error_terminate(cowboy:http_status(), cowboy_req:req(), #state{}) -> ok. error_terminate(Code, Req, State) -> receive {cowboy_req, resp_sent} -> ok @@ -576,7 +576,7 @@ error_terminate(Code, Req, State) -> terminate(State). %% Only send an error reply if there is no resp_sent message. --spec error_terminate(cowboy_http:status(), #state{}) -> ok. +-spec error_terminate(cowboy:http_status(), #state{}) -> ok. error_terminate(Code, State=#state{socket=Socket, transport=Transport, compress=Compress, onresponse=OnResponse}) -> receive |