Browse Source

manual: Add a missing return type for generate_etag

Loïc Hoguin 12 years ago
parent
commit
cadde391f7
1 changed files with 4 additions and 1 deletions
  1. 4 1
      manual/cowboy_rest.md

+ 4 - 1
manual/cowboy_rest.md

@@ -291,12 +291,15 @@ REST callbacks description
 ### generate_etag
 ### generate_etag
 
 
 >  *  Methods: GET, HEAD, POST, PUT, PATCH, DELETE
 >  *  Methods: GET, HEAD, POST, PUT, PATCH, DELETE
->  *  Value type: binary()
+>  *  Value type: binary() | {weak | strong, binary()}
 >  *  Default value: undefined
 >  *  Default value: undefined
 >
 >
 > Return the entity tag of the resource.
 > Return the entity tag of the resource.
 >
 >
 > This value will be sent as the value of the etag header.
 > This value will be sent as the value of the etag header.
+>
+> If a binary is returned, then the value will be parsed
+> to the tuple form automatically.
 
 
 ### is_authorized
 ### is_authorized