aboutsummaryrefslogtreecommitdiffstats
path: root/src/cowboy.erl
diff options
context:
space:
mode:
Diffstat (limited to 'src/cowboy.erl')
-rw-r--r--src/cowboy.erl4
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)