Open source machine readable grammar for HTTP / 1.1?

Is there an open source machine-readable grammar for HTTP / 1.1 requests and responses? In particular, I am looking for a grammar that is adopted by one of the popular parser generators (e.g. ANTLR, CUP, BNFC, ...).

+4
source share
2 answers

You can try Mongrel grammar which uses ragel . It is regular and therefore faster.

+1
source

There, improved (ie, more accurate, less idiomatic, and "pure") ABNFs in HTTPbis; see projects related to http://tools.ietf.org/wg/httpbis/ or compiled at http://greenbytes.de/tech/webdav/httpbis.abnf

+1
source

Source: https://habr.com/ru/post/1302016/


All Articles