aboutsummaryrefslogtreecommitdiffstats
path: root/src/cow_qs.erl
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2014-12-18 12:33:40 +0200
committerLoïc Hoguin <[email protected]>2014-12-18 13:23:18 +0200
commitbfa660285fe7babf7e6f334d6517e4d119bd3d10 (patch)
tree5c162ba9cfafd190dd9458d10136a6e11bdf30c2 /src/cow_qs.erl
parent152db97abd9501df8edf72e1c7b7fed58d7fea34 (diff)
downloadcowlib-bfa660285fe7babf7e6f334d6517e4d119bd3d10.tar.gz
cowlib-bfa660285fe7babf7e6f334d6517e4d119bd3d10.tar.bz2
cowlib-bfa660285fe7babf7e6f334d6517e4d119bd3d10.zip
Add cow_http_hd:parse_sec_websocket_version_client/1
From RFC6455. The code is slower than a plain binary_to_integer(Version), because it enforces that the value is in the 0..255 range as per the specification, and that the input binary is no longer than 3 characters. It is however better to enforce this because the client could also send a huge integer and we don't really want to convert it and waste resources.
Diffstat (limited to 'src/cow_qs.erl')
0 files changed, 0 insertions, 0 deletions