Skip to content
Myr

Clarify contents of request properties.

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Change URL to IRI and update examples to include extended characters.

authored by Bruce Sutherland · committed by Bruce Sutherland · parent 1ba6c22 · Browse files · 1 file+8 added−8 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+8 added−8 removed

  • other:+8 added−8 removed

1 file+8 added−8 removed

modified:docs/api.rst+8 added-8 removed
90 unmodified lines
91 .. attribute:: url92 .. attribute:: base_url93 .. attribute:: url_root9495 Provides different ways to look at the current URL. Imagine your96 application is listening on the following URL::95 Provides different ways to look at the current `IRI<http://tools.ietf.org/html/rfc3987>`_. Imagine your96 application is listening on the following IRI::9798 http://www.example.com/myapplication99100 And a user requests the following URL::100 And a user requests the following IRI::101102 http://www.example.com/myapplication/page.html?x=y102 http://www.example.com/myapplication/日本/page.html?x=y103104 In this case the values of the above mentioned attributes would be105 the following:106107 ============= ======================================================108 `path` ``/page.html``109 `full_path` ``/page.html?x=y``108 `path` ``/日本/page.html``109 `full_path` ``/日本/page.html?x=y``110 `script_root` ``/myapplication``111 `base_url` ``http://www.example.com/myapplication/page.html``112 `url` ``http://www.example.com/myapplication/page.html?x=y``111 `base_url` ``http://www.example.com/myapplication/日本/page.html``112 `url` ``http://www.example.com/myapplication/日本/page.html?x=y``113 `url_root` ``http://www.example.com/myapplication/``114 ============= ======================================================115116 .. attribute:: is_xhr
673 unmodified lines