LinkHeader
Constants
ATTR = /#{TOKEN} *= *(#{TOKEN}|#{QUOTED}) */
COMMA = /, */
HREF = /\ *< *([^>]*) *> *;? */
Regexes for link header parsing. TOKEN and QUOTED in particular should conform to RFC2616.
Acknowledgement: The QUOTED regexp is based on http://stackoverflow.com/questions/249791/regexp-for-quoted-string-with-escaping-quotes/249937#249937
QUOTED = /"((?:[^"\\]|\\.)*)"/
SEMI = /; */
TOKEN = /([^()<>@,;:\"\[\]?={}\s]+)/
Constructors
new(headers : HTTP::Headers)
Sourcenew(response : HTTP::Client::Response)
Sourcenew
SourceClass methods
Instance methods
links
Source