You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have some (old) code to parse and format http headers. It uses the ragel (http://www.complang.org/ragel/) parser generator to generate the parsers.
I originally wanted to post this for inclusion into phobos, however Andrei made it pretty clear that he doesn't want code in phobos which depends on external tools. So I currently have no real use for this code, if it's useful for vibe.d I'd be happy to contribute it.
Documentation: http://dl.dropbox.com/u/24218791/d/src/http.html
(the interesting part is canParseHeader, isHeader, canFormatHeader, formatHeader, formatHeaderValue, parseHeader, parseHeaderValue)
Some refactoring is probably necessary, but I first want to know if there's some interest in this code.
The text was updated successfully, but these errors were encountered:
I have some (old) code to parse and format http headers. It uses the ragel (http://www.complang.org/ragel/) parser generator to generate the parsers.
I originally wanted to post this for inclusion into phobos, however Andrei made it pretty clear that he doesn't want code in phobos which depends on external tools. So I currently have no real use for this code, if it's useful for vibe.d I'd be happy to contribute it.
Source code:
https://gist.github.com/2516504#file_http.rl.d
Compilable source code (generated by ragel, compile with deprecated code enabled)
https://gist.github.com/2516504#file_http.d
Documentation:
http://dl.dropbox.com/u/24218791/d/src/http.html
(the interesting part is
canParseHeader
,isHeader
,canFormatHeader
,formatHeader
,formatHeaderValue
,parseHeader
,parseHeaderValue
)Some refactoring is probably necessary, but I first want to know if there's some interest in this code.
The text was updated successfully, but these errors were encountered: