mirror of
https://github.com/ninenines/cowboy.git
synced 2025-07-15 20:50:24 +00:00
Use spaces in snippets in the guide
This commit is contained in:
parent
a231216b07
commit
31cabe0fb9
10 changed files with 104 additions and 104 deletions
|
@ -65,7 +65,7 @@ following snippet switches to a Websocket handler:
|
|||
[source,erlang]
|
||||
----
|
||||
init(Req, State) ->
|
||||
{cowboy_websocket, Req, State}.
|
||||
{cowboy_websocket, Req, State}.
|
||||
----
|
||||
|
||||
You can also switch to your own custom handler type:
|
||||
|
@ -73,7 +73,7 @@ You can also switch to your own custom handler type:
|
|||
[source,erlang]
|
||||
----
|
||||
init(Req, State) ->
|
||||
{my_handler_type, Req, State}.
|
||||
{my_handler_type, Req, State}.
|
||||
----
|
||||
|
||||
How to implement a custom handler type is described in the
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue