0
Fork 0
mirror of https://github.com/ninenines/cowboy.git synced 2025-07-16 05:00:24 +00:00

More 2.0 documentation updates

Still incomplete.
This commit is contained in:
Loïc Hoguin 2016-08-24 17:25:33 +02:00
parent b9ad02d305
commit 7839f13671
9 changed files with 363 additions and 207 deletions

View file

@ -15,8 +15,8 @@ must return a `cowboy_rest` tuple.
[source,erlang]
----
init(Req, _Opts) ->
{cowboy_rest, Req, #state{}}.
init(Req, State) ->
{cowboy_rest, Req, State}.
----
Cowboy will then switch to the REST protocol and start executing