aboutsummaryrefslogtreecommitdiffstats
path: root/guide
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2013-02-17 22:17:03 +0100
committerLoïc Hoguin <[email protected]>2013-02-17 22:17:03 +0100
commitd4ed41e79b55eb1c28d70ab5c922cd498773e52c (patch)
tree0f29f3ae698db01ecef17840fa2b4770e3aea472 /guide
parent5dec37bb9e38312dcd03cf353d7564a3d9298bbe (diff)
parent6d67ad809c45567e2dd49ba78e08daa57549ba15 (diff)
downloadcowboy-d4ed41e79b55eb1c28d70ab5c922cd498773e52c.tar.gz
cowboy-d4ed41e79b55eb1c28d70ab5c922cd498773e52c.tar.bz2
cowboy-d4ed41e79b55eb1c28d70ab5c922cd498773e52c.zip
Merge branch 'sub_protocol-behaviour' of git://github.com/fishcakez/cowboy
Diffstat (limited to 'guide')
-rw-r--r--guide/handlers.md3
1 files changed, 2 insertions, 1 deletions
diff --git a/guide/handlers.md b/guide/handlers.md
index e2c1264..5ffe401 100644
--- a/guide/handlers.md
+++ b/guide/handlers.md
@@ -41,7 +41,8 @@ Custom protocol upgrades
------------------------
The `my_protocol` module above will be used for further processing
-of the request. It requires only one callback, `upgrade/4`.
+of the request. It should use the `cowboy_sub_protocol` behaviour,
+which requires only one callback, `upgrade/4`.
It receives the request object, the middleware environment, and
the handler this request has been routed to along with its options.