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:
parent
b9ad02d305
commit
7839f13671
9 changed files with 363 additions and 207 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue