From 1d413ea51b29de270a737de4c97fcdd8656541ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Thu, 16 May 2013 17:01:38 +0200 Subject: Move cowboy_protocol:onresponse_fun() to cowboy:onresponse_fun() --- src/cowboy.erl | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/cowboy.erl') 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) -- cgit v1.2.3