aboutsummaryrefslogtreecommitdiffstats
path: root/src/cowboy_sup.erl
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2012-03-15 21:53:47 +0100
committerLoïc Hoguin <[email protected]>2012-03-15 22:29:38 +0100
commit8e2cc3d7f1c30212450e36f9ae725244e79451fb (patch)
tree4d9dc1d8b1588885df53157a249a74888aa86a6a /src/cowboy_sup.erl
parent36a6823e50e36c201df6c7a88a4c77cdaac7f2e6 (diff)
downloadcowboy-8e2cc3d7f1c30212450e36f9ae725244e79451fb.tar.gz
cowboy-8e2cc3d7f1c30212450e36f9ae725244e79451fb.tar.bz2
cowboy-8e2cc3d7f1c30212450e36f9ae725244e79451fb.zip
Add an 'onrequest' hook for HTTP
This new protocol option is a fun. It expects a single arg, the Req, and should only return a possibly modified Req. This can be used for many things like URL rewriting, access logging or listener-wide authentication. If a reply is sent inside the hook, then Cowboy will consider the request handled and will move on to the next one.
Diffstat (limited to 'src/cowboy_sup.erl')
0 files changed, 0 insertions, 0 deletions