开发者

Open source machine readable grammar for HTTP/1.1? [closed]

开发者 https://www.devze.com 2022-12-21 01:17 出处:网络
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.

We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.

Closed 7 years ago.

Improve this question

Is there an open source mach开发者_开发技巧ine-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, ...).


You can try Mongrel's grammar that uses ragel. It's regular and therefore faster.


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

0

精彩评论

暂无评论...
验证码 换一张
取 消