mirror of
https://github.com/ninenines/cowboy.git
synced 2025-07-15 12:40:25 +00:00
Merge branch 'master' of https://github.com/sstrigler/cowboy
This commit is contained in:
commit
4f2bbd2e5a
5 changed files with 23 additions and 23 deletions
|
@ -13,8 +13,8 @@ to all handlers. To use REST for the current request, this function
|
|||
must return a `cowboy_rest` tuple.
|
||||
|
||||
``` erlang
|
||||
init(Req, Opts) ->
|
||||
{cowboy_rest, Req, Opts}.
|
||||
init(Req, _Opts) ->
|
||||
{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