]> git.ipfire.org Git - thirdparty/squid.git/commit
parser-ng: Add HTTP/1.x extension tokenizer
authorAmos Jeffries <squid3@treenet.co.nz>
Fri, 19 Jun 2015 01:22:22 +0000 (18:22 -0700)
committerAmos Jeffries <squid3@treenet.co.nz>
Fri, 19 Jun 2015 01:22:22 +0000 (18:22 -0700)
commit10bfde05f30208a444d59ae27686b68344d60bbc
tree6da987bbb101f9e7ce230accf225bae1e11063e2
parent3898c84652c611a4455ffb3d3aca239bd44d1016
parent4312ade02e2dcb63d95ce6135738351ade274f86
parser-ng: Add HTTP/1.x extension tokenizer

Adds a class Http1::Tokenizer, which inherits from ::Parser::Tokenizer
and presents additional HTTP-specific token parsing methods.

At present it extends for the quoted-string, 1#( token/ quoted-string ),
and qdtext constructs from RFC 7230 and RFC 1945.

It can also cope with charset and quoted-pair escaping differences in
qdtext between RFC 1945 and RFC 7230. The un-escaped form of token is
returned.