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.erl6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/cowboy_protocol.erl b/src/cowboy_protocol.erl
index d431667..4874e9a 100644
--- a/src/cowboy_protocol.erl
+++ b/src/cowboy_protocol.erl
@@ -56,10 +56,6 @@
-export([parse_request/3]).
-export([resume/6]).
--type onresponse_fun() ::
- fun((cowboy:http_status(), cowboy:http_headers(), iodata(), Req) -> Req).
--export_type([onresponse_fun/0]).
-
-record(state, {
socket :: inet:socket(),
transport :: module(),
@@ -67,7 +63,7 @@
compress :: boolean(),
env :: cowboy_middleware:env(),
onrequest :: undefined | cowboy:onrequest_fun(),
- onresponse = undefined :: undefined | onresponse_fun(),
+ onresponse = undefined :: undefined | cowboy:onresponse_fun(),
max_empty_lines :: non_neg_integer(),
req_keepalive = 1 :: non_neg_integer(),
max_keepalive :: non_neg_integer(),