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

Move cowboy_protocol:onrequest_fun() to cowboy:onrequest_fun()

This commit is contained in:
Loïc Hoguin 2013-05-16 16:52:20 +02:00
parent df73a4d0a5
commit 488dcc967b
2 changed files with 4 additions and 3 deletions

View file

@ -29,6 +29,9 @@
-type http_version() :: 'HTTP/1.1' | 'HTTP/1.0'.
-export_type([http_version/0]).
-type onrequest_fun() :: fun((Req) -> Req).
-export_type([onrequest_fun/0]).
%% @doc Start an HTTP listener.
-spec start_http(any(), non_neg_integer(), any(), any()) -> {ok, pid()}.
start_http(Ref, NbAcceptors, TransOpts, ProtoOpts)