0
Fork 0
mirror of https://github.com/ninenines/cowboy.git synced 2025-07-15 12:40:25 +00:00

Move cowboy_protocol:onresponse_fun() to cowboy:onresponse_fun()

This commit is contained in:
Loïc Hoguin 2013-05-16 17:01:38 +02:00
parent 488dcc967b
commit 1d413ea51b
3 changed files with 7 additions and 7 deletions

View file

@ -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)