]> Cypherpunks repositories - gostls13.git/commit
http: add lexing functions
authorPetar Maymounkov <petarm@gmail.com>
Thu, 28 Jan 2010 23:14:54 +0000 (15:14 -0800)
committerRuss Cox <rsc@golang.org>
Thu, 28 Jan 2010 23:14:54 +0000 (15:14 -0800)
commitdd77c63d3db66381e8573acd154aebce9c368ccc
tree854f362aeb9d4bea8b0984e3ba15ee3fb6d74006
parenta0e6f03add91af28cce2f2f5a8ec5d2e859de6f4
http: add lexing functions

In particular, add field-value tokenizer which respects quoting rules.
The code is intended for use in tokenizing the Transfer-Encoding and Trailer fields.
The lexing function is not connected to the main parsing code yet (in the next CL).

R=rsc
CC=golang-dev
https://golang.org/cl/190085
src/pkg/http/Makefile
src/pkg/http/lex.go [new file with mode: 0644]
src/pkg/http/lex_test.go [new file with mode: 0644]