aboutsummaryrefslogtreecommitdiffstats
path: root/src/cowboy_protocol.erl
diff options
context:
space:
mode:
Diffstat (limited to 'src/cowboy_protocol.erl')
-rw-r--r--src/cowboy_protocol.erl4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/cowboy_protocol.erl b/src/cowboy_protocol.erl
index 0bcf5a1..d431667 100644
--- a/src/cowboy_protocol.erl
+++ b/src/cowboy_protocol.erl
@@ -56,10 +56,8 @@
-export([parse_request/3]).
-export([resume/6]).
--type onrequest_fun() :: fun((Req) -> Req).
-type onresponse_fun() ::
fun((cowboy:http_status(), cowboy:http_headers(), iodata(), Req) -> Req).
--export_type([onrequest_fun/0]).
-export_type([onresponse_fun/0]).
-record(state, {
@@ -68,7 +66,7 @@
middlewares :: [module()],
compress :: boolean(),
env :: cowboy_middleware:env(),
- onrequest :: undefined | onrequest_fun(),
+ onrequest :: undefined | cowboy:onrequest_fun(),
onresponse = undefined :: undefined | onresponse_fun(),
max_empty_lines :: non_neg_integer(),
req_keepalive = 1 :: non_neg_integer(),