mirror of
https://github.com/puma/puma.git
synced 2022-11-09 13:48:40 -05:00
slightly more readable?
git-svn-id: svn+ssh://rubyforge.org/var/svn/mongrel/trunk@651 19e92222-5c0b-0410-8929-a290d50e31e9
This commit is contained in:
parent
e6336cdacf
commit
b2afd258c0
1 changed files with 11 additions and 11 deletions
|
@ -92,28 +92,28 @@
|
|||
scheme = ( alpha | digit | "+" | "-" | "." )* ;
|
||||
absolute_uri = (scheme ":" (uchar | reserved )*);
|
||||
|
||||
path = (pchar+ ( "/" pchar* )*) ;
|
||||
path = ( pchar+ ( "/" pchar* )* ) ;
|
||||
query = ( uchar | reserved )* %query_string ;
|
||||
param = ( pchar | "/" )* ;
|
||||
params = (param ( ";" param )*) ;
|
||||
rel_path = (path? %request_path (";" params)?) ("?" %start_query query)?;
|
||||
absolute_path = ("/"+ rel_path);
|
||||
params = ( param ( ";" param )* ) ;
|
||||
rel_path = ( path? %request_path (";" params)? ) ("?" %start_query query)?;
|
||||
absolute_path = ( "/"+ rel_path );
|
||||
|
||||
Request_URI = ("*" | absolute_uri | absolute_path) >mark %request_uri;
|
||||
Request_URI = ( "*" | absolute_uri | absolute_path ) >mark %request_uri;
|
||||
Fragment = ( uchar | reserved )* >mark %fragment;
|
||||
Method = (upper | digit | safe){1,20} >mark %request_method;
|
||||
Method = ( upper | digit | safe ){1,20} >mark %request_method;
|
||||
|
||||
http_number = (digit+ "." digit+) ;
|
||||
HTTP_Version = ("HTTP/" http_number) >mark %http_version ;
|
||||
Request_Line = (Method " " Request_URI ("#" Fragment ){0,1} " " HTTP_Version CRLF) ;
|
||||
http_number = ( digit+ "." digit+ ) ;
|
||||
HTTP_Version = ( "HTTP/" http_number ) >mark %http_version ;
|
||||
Request_Line = ( Method " " Request_URI ("#" Fragment){0,1} " " HTTP_Version CRLF ) ;
|
||||
|
||||
field_name = (token -- ":")+ >start_field %write_field;
|
||||
field_name = ( token -- ":" )+ >start_field %write_field;
|
||||
|
||||
field_value = any* >start_value %write_value;
|
||||
|
||||
message_header = field_name ":" " "* field_value :> CRLF;
|
||||
|
||||
Request = Request_Line (message_header)* ( CRLF @done);
|
||||
Request = Request_Line ( message_header )* ( CRLF @done );
|
||||
|
||||
main := Request;
|
||||
}%%
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue