aboutsummaryrefslogtreecommitdiffstats
path: root/test/dispatcher_prop.erl
diff options
context:
space:
mode:
authorMagnus Klaar <[email protected]>2012-02-28 18:35:26 +0100
committerMagnus Klaar <[email protected]>2012-02-29 22:32:37 +0100
commit9922de6d9e4e92efa6262f30f9dfb2f5e1a35f0d (patch)
tree63fa1a01af0cf13a05af8604994745b91b66b7a1 /test/dispatcher_prop.erl
parent8f0a78f52f2b38f61002f96a595455eb81740de3 (diff)
downloadcowboy-9922de6d9e4e92efa6262f30f9dfb2f5e1a35f0d.tar.gz
cowboy-9922de6d9e4e92efa6262f30f9dfb2f5e1a35f0d.tar.bz2
cowboy-9922de6d9e4e92efa6262f30f9dfb2f5e1a35f0d.zip
Tests and fixes for the generate_etag/2 callback
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.
Diffstat (limited to 'test/dispatcher_prop.erl')
0 files changed, 0 insertions, 0 deletions