Displaying 1 result from an estimated 1 matches for "http_status_text".
2006 Oct 31
5
mongrel parser for server response
...ttp11_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 " " Http_status_text CRLF) ;
field_name = (token -- ":")+ >start_field %write_field;
field_value = any* >start_value %write_value;
message_header = field_name ":...