0
Fork 0
mirror of https://github.com/ninenines/cowboy.git synced 2025-07-15 12:40:25 +00:00

manual: Add a missing return type for generate_etag

This commit is contained in:
Loïc Hoguin 2013-05-25 17:49:09 +02:00
parent bfbe1cc5c6
commit cadde391f7

View file

@ -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