From 8ebb992434c89e191389503cbc705d7f30706772 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Wed, 17 Dec 2014 23:54:37 +0200 Subject: Add cow_http_hd:parse_if_match/1 From RFC7232. Nearly twice as fast as current Cowboy code. --- include/cow_inline.hrl | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include') 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), -- cgit v1.2.3