aboutsummaryrefslogtreecommitdiffstats
path: root/manual
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2013-05-25 17:49:09 +0200
committerLoïc Hoguin <[email protected]>2013-05-25 17:49:09 +0200
commitcadde391f7d693c043963c7c7ebde7373e05d570 (patch)
tree29d7e9164d46072199126b0bf479d0d722929d23 /manual
parentbfbe1cc5c60471efe3e840f5658957ace0269dbd (diff)
downloadcowboy-cadde391f7d693c043963c7c7ebde7373e05d570.tar.gz
cowboy-cadde391f7d693c043963c7c7ebde7373e05d570.tar.bz2
cowboy-cadde391f7d693c043963c7c7ebde7373e05d570.zip
manual: Add a missing return type for generate_etag
Diffstat (limited to 'manual')
-rw-r--r--manual/cowboy_rest.md5
1 files changed, 4 insertions, 1 deletions
diff --git a/manual/cowboy_rest.md b/manual/cowboy_rest.md
index b7890e4..c79aebb 100644
--- a/manual/cowboy_rest.md
+++ b/manual/cowboy_rest.md
@@ -291,12 +291,15 @@ REST callbacks description
### generate_etag
> * Methods: GET, HEAD, POST, PUT, PATCH, DELETE
-> * Value type: binary()
+> * Value type: binary() | {weak | strong, binary()}
> * Default value: undefined
>
> Return the entity tag of the resource.
>
> 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