Age | Commit message (Collapse) | Author | |
---|---|---|---|
2012-08-27 | Rename cowboy_http_rest to cowboy_rest | Loïc Hoguin | |
2012-08-27 | Rename cowboy_http_req to cowboy_req | Loïc Hoguin | |
2012-02-29 | Tests and fixes for the generate_etag/2 callback | Magnus Klaar | |
The return value from the generate_etag/2 callback is expected to be a binary tagged with either weak or strong. This binary is quoted, and may be prefixed with W/ before it is set as the value of the ETag header in the response. For backwards compatibility with older handlers where the return value was expected to be a quoted binary a function has been added to parse any return values that are untagged binaries. All untagged binaries are expected to be a valid value for the ETag header. |