diff options
author | Loïc Hoguin <[email protected]> | 2014-09-24 14:39:17 +0300 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2014-09-24 14:39:17 +0300 |
commit | aa4d86b81f6095316813c599659014c15bf9b935 (patch) | |
tree | d503405a06e70c314975cde6dbf706939825890a /src/cowboy.erl | |
parent | 25259671f51c076720b64959a700263eaa0937b2 (diff) | |
download | cowboy-aa4d86b81f6095316813c599659014c15bf9b935.tar.gz cowboy-aa4d86b81f6095316813c599659014c15bf9b935.tar.bz2 cowboy-aa4d86b81f6095316813c599659014c15bf9b935.zip |
Remove the onrequest hook
It was redundant with middlewares. Allows us to save a few operations
for every incoming requests.
Diffstat (limited to 'src/cowboy.erl')
-rw-r--r-- | src/cowboy.erl | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/cowboy.erl b/src/cowboy.erl index 8e9232f..af9f1b3 100644 --- a/src/cowboy.erl +++ b/src/cowboy.erl @@ -34,9 +34,6 @@ -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]). - -type onresponse_fun() :: fun((http_status(), http_headers(), iodata(), Req) -> Req). -export_type([onresponse_fun/0]). |