mirror of
https://github.com/ninenines/cowboy.git
synced 2025-07-15 20:50:24 +00:00
Add default operations for OPTIONS method in REST
It defaults to setting the Allow header to "HEAD, GET, OPTIONS".
This commit is contained in:
parent
d063511a0e
commit
b58a0549e1
4 changed files with 45 additions and 12 deletions
5
test/rest_empty_resource.erl
Normal file
5
test/rest_empty_resource.erl
Normal file
|
@ -0,0 +1,5 @@
|
|||
-module(rest_empty_resource).
|
||||
-export([init/3]).
|
||||
|
||||
init(_Transport, _Req, _Opts) ->
|
||||
{upgrade, protocol, cowboy_rest}.
|
Loading…
Add table
Add a link
Reference in a new issue