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:
parent
df73a4d0a5
commit
488dcc967b
2 changed files with 4 additions and 3 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue