From 6d67ad809c45567e2dd49ba78e08daa57549ba15 Mon Sep 17 00:00:00 2001 From: James Fish Date: Fri, 15 Feb 2013 00:53:40 +0000 Subject: Add sub protocol behaviour --- guide/handlers.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'guide/handlers.md') 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. -- cgit v1.2.3