aboutsummaryrefslogtreecommitdiffstats
path: root/doc/src/guide/handlers.asciidoc
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2017-07-20 18:28:06 +0200
committerLoïc Hoguin <[email protected]>2017-07-20 18:28:06 +0200
commit3099fc1d9f33e791cc1edfd585bbfb2d4be30a92 (patch)
tree0dd222225a65452d0c4f5df166c25e25956a4242 /doc/src/guide/handlers.asciidoc
parente4cab480dc2562378d9d046069bce2e5ab90dabd (diff)
downloadcowboy-3099fc1d9f33e791cc1edfd585bbfb2d4be30a92.tar.gz
cowboy-3099fc1d9f33e791cc1edfd585bbfb2d4be30a92.tar.bz2
cowboy-3099fc1d9f33e791cc1edfd585bbfb2d4be30a92.zip
Remove cowboy_sub_protocol from the documentation
This will be reintroduced in a future release once the interface stabilizes. For the time being it will be an internal module only.
Diffstat (limited to 'doc/src/guide/handlers.asciidoc')
-rw-r--r--doc/src/guide/handlers.asciidoc11
1 files changed, 0 insertions, 11 deletions
diff --git a/doc/src/guide/handlers.asciidoc b/doc/src/guide/handlers.asciidoc
index e073dfb..fe6f462 100644
--- a/doc/src/guide/handlers.asciidoc
+++ b/doc/src/guide/handlers.asciidoc
@@ -68,17 +68,6 @@ init(Req, State) ->
{cowboy_websocket, Req, State}.
----
-You can also switch to your own custom handler type:
-
-[source,erlang]
-----
-init(Req, State) ->
- {my_handler_type, Req, State}.
-----
-
-How to implement a custom handler type is described in the
-xref:sub_protocols[Sub protocols] chapter.
-
=== Cleaning up
All handler types provide the optional `terminate/3` callback.