moonbridge

diff reference.txt @ 10:7e6faff049c3

Removed request.url; String in request.path does not contain a leading slash anymore; Stricter parsing of request targets
author jbe
date Thu Jan 29 16:07:56 2015 +0100 (2015-01-29)
parents 4d7551c962d5
children 44a13f4b706f
line diff
     1.1 --- a/reference.txt	Thu Jan 29 15:14:58 2015 +0100
     1.2 +++ b/reference.txt	Thu Jan 29 16:07:56 2015 +0100
     1.3 @@ -268,8 +268,13 @@
     1.4  
     1.5  ### request.path
     1.6  
     1.7 -The requested path, e.g. "/index.html", without the query part (that starts
     1.8 -with a question mark, see request.query and request.url).
     1.9 +The requested path without a leading slash and without the query part (e.g.
    1.10 +"index.html" if "/index.html?a=b&c=d" has been requested). For the query part,
    1.11 +see request.query.
    1.12 +
    1.13 +This value will be nil if (and only if) the request method is "OPTIONS" with a
    1.14 +request target equal to "*" (see also asterisk-form of request-target in
    1.15 +section 5.3.4 in RFC 7230).
    1.16  
    1.17  
    1.18  ### request.post_metadata
    1.19 @@ -300,9 +305,15 @@
    1.20  
    1.21  ### request.query
    1.22  
    1.23 -Query part of request path without the leading question mark, e.g. "a=b&c=d" if
    1.24 -request.path is "index.html?a=b&c=d". The data is automatically parsed and made
    1.25 -available through request.get_params and request.get_params_list.
    1.26 +Query part of the request target without the leading question mark, e.g.
    1.27 +"a=b&c=d" if the requested target is "/index.html?a=b&c=d". The data is
    1.28 +automatically parsed and made available through request.get_params and
    1.29 +request.get_params_list.
    1.30 +
    1.31 +If there is no query part given in the request target, then this string is
    1.32 +the empty string. This value will be nil if (and only if) the request method
    1.33 +is "OPTIONS" with a request target equal to "*" (see also asterisk-form of
    1.34 +request-target in section 5.3.4 in RFC 7230).
    1.35  
    1.36  
    1.37  ### request:process_request_body()
    1.38 @@ -403,9 +414,3 @@
    1.39  given.
    1.40  
    1.41  
    1.42 -### request.url
    1.43 -
    1.44 -The requested URL. This value is automatically split up into request.path and
    1.45 -request.query using the question mark as delimiter. The
    1.46 -
    1.47 -

Impressum / About Us