Changeset 650 for trunk/ext/http11/http11_parser.rl
- Timestamp:
- 10/15/07 13:00:40 (11 months ago)
- Files:
-
- trunk/ext/http11/http11_parser.rl (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/ext/http11/http11_parser.rl
r331 r650 39 39 if(parser->request_uri != NULL) 40 40 parser->request_uri(parser->data, PTR_TO(mark), LEN(mark, fpc)); 41 } 42 action fragment { 43 if(parser->fragment != NULL) 44 parser->fragment(parser->data, PTR_TO(mark), LEN(mark, fpc)); 41 45 } 42 46 … … 97 101 98 102 Request_URI = ("*" | absolute_uri | absolute_path) >mark %request_uri; 103 Fragment = ( uchar | reserved )* >mark %fragment; 99 104 Method = (upper | digit | safe){1,20} >mark %request_method; 100 105 101 106 http_number = (digit+ "." digit+) ; 102 107 HTTP_Version = ("HTTP/" http_number) >mark %http_version ; 103 Request_Line = (Method " " Request_URI " " HTTP_Version CRLF) ;108 Request_Line = (Method " " Request_URI ("#" Fragment ){0,1} " " HTTP_Version CRLF) ; 104 109 105 110 field_name = (token -- ":")+ >start_field %write_field;
