mirror of
https://github.com/ninenines/cowboy.git
synced 2025-07-16 05:00:24 +00:00
Document media type wildcard in content_types_accepted
This commit is contained in:
parent
1ba48c58b1
commit
28aee1f272
4 changed files with 26 additions and 2 deletions
|
@ -61,7 +61,7 @@
|
|||
-optional_callbacks([charsets_provided/2]).
|
||||
|
||||
-callback content_types_accepted(Req, State)
|
||||
-> {[{binary() | {binary(), binary(), '*' | [{binary(), binary()}]}, atom()}], Req, State}
|
||||
-> {[{'*' | binary() | {binary(), binary(), '*' | [{binary(), binary()}]}, atom()}], Req, State}
|
||||
| {stop, Req, State}
|
||||
| {switch_handler(), Req, State}
|
||||
when Req::cowboy_req:req(), State::any().
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue