aboutsummaryrefslogtreecommitdiffstats
path: root/guide
diff options
context:
space:
mode:
authorJames Fish <[email protected]>2013-02-15 00:53:40 +0000
committerJames Fish <[email protected]>2013-02-16 16:19:53 +0000
commit6d67ad809c45567e2dd49ba78e08daa57549ba15 (patch)
tree2ef488c239ca4114a0e0a25f8800f23a15a892b1 /guide
parente3daf439da42283cf65faa3311ff73bb7ffe413b (diff)
downloadcowboy-6d67ad809c45567e2dd49ba78e08daa57549ba15.tar.gz
cowboy-6d67ad809c45567e2dd49ba78e08daa57549ba15.tar.bz2
cowboy-6d67ad809c45567e2dd49ba78e08daa57549ba15.zip
Add sub protocol behaviour
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.