update docs requirements
remove duplicate docs
This commit is contained in:
parent
e69b49bd3d
commit
7e3b8abf99
2 changed files with 3 additions and 37 deletions
34
docs/api.rst
34
docs/api.rst
|
|
@ -31,40 +31,6 @@ Incoming Request Data
|
||||||
:inherited-members:
|
:inherited-members:
|
||||||
:exclude-members: json_module
|
:exclude-members: json_module
|
||||||
|
|
||||||
.. attribute:: environ
|
|
||||||
|
|
||||||
The underlying WSGI environment.
|
|
||||||
|
|
||||||
.. attribute:: path
|
|
||||||
.. attribute:: full_path
|
|
||||||
.. attribute:: script_root
|
|
||||||
.. attribute:: url
|
|
||||||
.. attribute:: base_url
|
|
||||||
.. attribute:: url_root
|
|
||||||
|
|
||||||
Provides different ways to look at the current :rfc:`3987`.
|
|
||||||
Imagine your application is listening on the following application
|
|
||||||
root::
|
|
||||||
|
|
||||||
http://www.example.com/myapplication
|
|
||||||
|
|
||||||
And a user requests the following URI::
|
|
||||||
|
|
||||||
http://www.example.com/myapplication/%CF%80/page.html?x=y
|
|
||||||
|
|
||||||
In this case the values of the above mentioned attributes would be
|
|
||||||
the following:
|
|
||||||
|
|
||||||
============= ======================================================
|
|
||||||
`path` ``'/π/page.html'``
|
|
||||||
`full_path` ``'/π/page.html?x=y'``
|
|
||||||
`script_root` ``'/myapplication'``
|
|
||||||
`base_url` ``'http://www.example.com/myapplication/π/page.html'``
|
|
||||||
`url` ``'http://www.example.com/myapplication/π/page.html?x=y'``
|
|
||||||
`url_root` ``'http://www.example.com/myapplication/'``
|
|
||||||
============= ======================================================
|
|
||||||
|
|
||||||
|
|
||||||
.. attribute:: request
|
.. attribute:: request
|
||||||
|
|
||||||
To access incoming request data, you can use the global `request`
|
To access incoming request data, you can use the global `request`
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
Sphinx~=2.2.0
|
Sphinx~=3.0.0
|
||||||
Pallets-Sphinx-Themes~=1.2.2
|
Pallets-Sphinx-Themes~=1.2.3
|
||||||
sphinxcontrib-log-cabinet~=1.0.1
|
sphinxcontrib-log-cabinet~=1.0.1
|
||||||
sphinx-issues~=1.2.0
|
sphinx-issues~=1.2.0
|
||||||
packaging~=19.2
|
packaging~=20.3
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue