Clarify contents of request properties.
Change URL to IRI and update examples to include extended characters.
This commit is contained in:
parent
1ba6c2248d
commit
3bbe869dd7
1 changed files with 8 additions and 8 deletions
16
docs/api.rst
16
docs/api.rst
|
|
@ -92,24 +92,24 @@ Incoming Request Data
|
||||||
.. attribute:: base_url
|
.. attribute:: base_url
|
||||||
.. attribute:: url_root
|
.. attribute:: url_root
|
||||||
|
|
||||||
Provides different ways to look at the current URL. Imagine your
|
Provides different ways to look at the current `IRI<http://tools.ietf.org/html/rfc3987>`_. Imagine your
|
||||||
application is listening on the following URL::
|
application is listening on the following IRI::
|
||||||
|
|
||||||
http://www.example.com/myapplication
|
http://www.example.com/myapplication
|
||||||
|
|
||||||
And a user requests the following URL::
|
And a user requests the following IRI::
|
||||||
|
|
||||||
http://www.example.com/myapplication/page.html?x=y
|
http://www.example.com/myapplication/日本/page.html?x=y
|
||||||
|
|
||||||
In this case the values of the above mentioned attributes would be
|
In this case the values of the above mentioned attributes would be
|
||||||
the following:
|
the following:
|
||||||
|
|
||||||
============= ======================================================
|
============= ======================================================
|
||||||
`path` ``/page.html``
|
`path` ``/日本/page.html``
|
||||||
`full_path` ``/page.html?x=y``
|
`full_path` ``/日本/page.html?x=y``
|
||||||
`script_root` ``/myapplication``
|
`script_root` ``/myapplication``
|
||||||
`base_url` ``http://www.example.com/myapplication/page.html``
|
`base_url` ``http://www.example.com/myapplication/日本/page.html``
|
||||||
`url` ``http://www.example.com/myapplication/page.html?x=y``
|
`url` ``http://www.example.com/myapplication/日本/page.html?x=y``
|
||||||
`url_root` ``http://www.example.com/myapplication/``
|
`url_root` ``http://www.example.com/myapplication/``
|
||||||
============= ======================================================
|
============= ======================================================
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue