diff options
author | Loïc Hoguin <[email protected]> | 2014-04-17 13:38:42 +0200 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2014-04-17 13:38:42 +0200 |
commit | 23eb3f8e9addfbc4217e4046ef867c5ec99582b1 (patch) | |
tree | 0fa90f5b6b977e08fb4949525824ee32de1f42bf /manual/cowboy_rest.md | |
parent | 5c2adc167aff5e799f2a676fe5682784898e9d93 (diff) | |
download | cowboy-23eb3f8e9addfbc4217e4046ef867c5ec99582b1.tar.gz cowboy-23eb3f8e9addfbc4217e4046ef867c5ec99582b1.tar.bz2 cowboy-23eb3f8e9addfbc4217e4046ef867c5ec99582b1.zip |
Fix manual for content_types_provided
Diffstat (limited to 'manual/cowboy_rest.md')
-rw-r--r-- | manual/cowboy_rest.md | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/manual/cowboy_rest.md b/manual/cowboy_rest.md index 110e224..7a38bb7 100644 --- a/manual/cowboy_rest.md +++ b/manual/cowboy_rest.md @@ -202,7 +202,7 @@ REST callbacks description ### content_types_provided -> * Methods: GET, HEAD +> * Methods: GET, HEAD, POST, PUT, PATCH, DELETE > * Default value: [{{<<"text">>, <<"html">>, '*'}, to_html}] > > Types: @@ -226,8 +226,11 @@ REST callbacks description > `charset` parameter, if present, which is case insensitive. > > The `ProvideResource` value is the name of the callback that will -> be called if the content-type matches. It is defined as follow. +> be called if the content-type matches. It will only be called when +> a representation of the resource needs to be returned. It is defined +> as follow. > +> * Methods: GET, HEAD > * Value type: iodata() | {stream, Fun} | {stream, Len, Fun} | {chunked, ChunkedFun} > * No default > |