aboutsummaryrefslogtreecommitdiffstats
path: root/include/cow_inline.hrl
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2014-12-17 23:54:37 +0200
committerLoïc Hoguin <[email protected]>2014-12-18 00:08:14 +0200
commit8ebb992434c89e191389503cbc705d7f30706772 (patch)
treeb07bbe35102f2b867b5f5d2f53a212c48b37fc67 /include/cow_inline.hrl
parent95b4a3924d2a8ac1bf0d114248f1a45e58c25cbf (diff)
downloadcowlib-8ebb992434c89e191389503cbc705d7f30706772.tar.gz
cowlib-8ebb992434c89e191389503cbc705d7f30706772.tar.bz2
cowlib-8ebb992434c89e191389503cbc705d7f30706772.zip
Add cow_http_hd:parse_if_match/1
From RFC7232. Nearly twice as fast as current Cowboy code.
Diffstat (limited to 'include/cow_inline.hrl')
-rw-r--r--include/cow_inline.hrl4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/cow_inline.hrl b/include/cow_inline.hrl
index 4e45960..0fb8b3b 100644
--- a/include/cow_inline.hrl
+++ b/include/cow_inline.hrl
@@ -39,6 +39,10 @@
C =:= $5; C =:= $6; C =:= $7; C =:= $8; C =:= $9
).
+%% IS_ETAGC(Character)
+
+-define(IS_ETAGC(C), C =:= 16#21; C >= 16#23, C =/= 16#7f).
+
%% IS_TOKEN(Character)
-define(IS_TOKEN(C),