Browse Source

Fix manual for content_types_provided

Loïc Hoguin 11 years ago
parent
commit
23eb3f8e9a
1 changed files with 5 additions and 2 deletions
  1. 5 2
      manual/cowboy_rest.md

+ 5 - 2
manual/cowboy_rest.md

@@ -202,7 +202,7 @@ REST callbacks description
 
 
 ### content_types_provided
 ### content_types_provided
 
 
->  *  Methods: GET, HEAD
+>  *  Methods: GET, HEAD, POST, PUT, PATCH, DELETE
 >  *  Default value: [{{<<"text">>, <<"html">>, '*'}, to_html}]
 >  *  Default value: [{{<<"text">>, <<"html">>, '*'}, to_html}]
 >
 >
 > Types:
 > Types:
@@ -226,8 +226,11 @@ REST callbacks description
 > `charset` parameter, if present, which is case insensitive.
 > `charset` parameter, if present, which is case insensitive.
 >
 >
 > The `ProvideResource` value is the name of the callback that will
 > 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}
 >  *  Value type: iodata() | {stream, Fun} | {stream, Len, Fun} | {chunked, ChunkedFun}
 >  *  No default
 >  *  No default
 >
 >