Displaying 1 result from an estimated 1 matches for "http_number".
2006 Oct 31
5
mongrel parser for server response
...Never having used a parser like
Ragel before in my life, I''d like some input on the following for
parsing an http server response. This is part of my modified version
of http11_parser.rl. In particular what would be better than using
''any'' to match the status text?
http_number = (digit+ "." digit+) ;
HTTP_Version = ("HTTP/" http_number) >mark %http_version ;
Http_status_code = (digit){3} >mark %http_status_code ;
Http_status_text = any* >mark %http_status_text ;
Request_Line = (HTTP_Version " " Http_status_code " "...