Strelka::Constants::

CookieHeader

module

Constants for parsing Cookie headers, mostly taken from RFC6265 - HTTP State Management Mechanism

http://tools.ietf.org/html/rfc6265

Constants

cookie-name = token

cookie-octet = %x21 / %x23-2B / %x2D-3A / %x3C-5B / %x5D-7E

; US-ASCII characters excluding CTLs,
; whitespace DQUOTE, comma, semicolon,
; and backslash

cookie-pair = cookie-name “=” cookie-value

cookie-value = *cookie-octet / ( DQUOTE *cookie-octet DQUOTE )

Version option (not part of RFC6265)

CRLF

Literals

CTL

CTL = <any US-ASCII control character

(octets 0 - 31) and DEL (127)>
DQUOTE

Double-quote

OBS_FOLD

OWS = *( [ obs-fold ] WSP )

; "optional" whitespace

obs-fold = CRLF

OWS
SEPARATORS

separators = “(” | “)” | “<” | “>” | “@”

| "," | ";" | ":" | "\" | <">
| "/" | "[" | "]" | "?" | "="
| "{" | "}" | SP | HT
TOKEN

token = 1*<any CHAR except CTLs or separators>

WSP