Is there an open source machine-readable grammar for HTTP/1.1 requests and responses? Specifically, i'm looking for a grammar that is accepted by one of the popular parser generators (e.g., ANTLR, CUP, BNFC, ...).
Asked
Active
Viewed 953 times
4
-
1What about ABNF in RFC 2616 (http://www.w3.org/Protocols/rfc2616/rfc2616.html)? – Gumbo Feb 22 '10 at 09:20
2 Answers
1
There's improved (i.e., more exact, less idiomatic, and "pure") ABNF in HTTPbis; see the drafts linked from http://tools.ietf.org/wg/httpbis/ or collected at http://greenbytes.de/tech/webdav/httpbis.abnf

Mark Nottingham
- 5,546
- 1
- 25
- 21