diff options
author | Loïc Hoguin <[email protected]> | 2013-05-16 17:01:38 +0200 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2013-05-16 17:01:38 +0200 |
commit | 1d413ea51b29de270a737de4c97fcdd8656541ce (patch) | |
tree | fc31d1edf086ee9b52c41b58b1822458d247d7ee /src/cowboy.erl | |
parent | 488dcc967b34f467fed79a33cd744f462324b165 (diff) | |
download | cowboy-1d413ea51b29de270a737de4c97fcdd8656541ce.tar.gz cowboy-1d413ea51b29de270a737de4c97fcdd8656541ce.tar.bz2 cowboy-1d413ea51b29de270a737de4c97fcdd8656541ce.zip |
Move cowboy_protocol:onresponse_fun() to cowboy:onresponse_fun()
Diffstat (limited to 'src/cowboy.erl')
-rw-r--r-- | src/cowboy.erl | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/cowboy.erl b/src/cowboy.erl index 07dd4b4..375f924 100644 --- a/src/cowboy.erl +++ b/src/cowboy.erl @@ -32,6 +32,10 @@ -type onrequest_fun() :: fun((Req) -> Req). -export_type([onrequest_fun/0]). +-type onresponse_fun() :: + fun((http_status(), http_headers(), iodata(), Req) -> Req). +-export_type([onresponse_fun/0]). + %% @doc Start an HTTP listener. -spec start_http(any(), non_neg_integer(), any(), any()) -> {ok, pid()}. start_http(Ref, NbAcceptors, TransOpts, ProtoOpts) |