aboutsummaryrefslogtreecommitdiffstats
path: root/include/http.hrl
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2012-05-04 06:32:12 +0200
committerLoïc Hoguin <[email protected]>2012-05-04 06:32:12 +0200
commit0406a632dca8afbc1b22a0b4d556aa0004284b2b (patch)
treea6124942543c9f2be6eadc616584cadf071ac1b2 /include/http.hrl
parent1524ba4f39f03b51dda7d20ec69fb5fa7ba09bad (diff)
parent57fda142175a7fd0340d9030e0477c16e13dc5f5 (diff)
downloadcowboy-0406a632dca8afbc1b22a0b4d556aa0004284b2b.tar.gz
cowboy-0406a632dca8afbc1b22a0b4d556aa0004284b2b.tar.bz2
cowboy-0406a632dca8afbc1b22a0b4d556aa0004284b2b.zip
Merge branch 'response-hook'
Diffstat (limited to 'include/http.hrl')
-rw-r--r--include/http.hrl2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/http.hrl b/include/http.hrl
index 21d837b..dc849c2 100644
--- a/include/http.hrl
+++ b/include/http.hrl
@@ -52,5 +52,7 @@
fun(() -> {sent, non_neg_integer()})},
%% Functions.
+ onresponse = undefined :: undefined | fun((cowboy_http:status(),
+ cowboy_http:headers(), #http_req{}) -> #http_req{}),
urldecode :: {fun((binary(), T) -> binary()), T}
}).