Added testing documentation
This commit is contained in:
parent
ef524f2cfd
commit
03148dba6b
3 changed files with 41 additions and 12 deletions
16
docs/api.rst
16
docs/api.rst
|
|
@ -19,6 +19,8 @@ Application Object
|
|||
Incoming Request Data
|
||||
---------------------
|
||||
|
||||
.. autoclass:: Request
|
||||
|
||||
.. class:: request
|
||||
|
||||
To access incoming request data, you can use the global `request`
|
||||
|
|
@ -104,6 +106,20 @@ Incoming Request Data
|
|||
`root_url` ``http://www.example.com/myapplication/``
|
||||
============= ======================================================
|
||||
|
||||
Response Objects
|
||||
----------------
|
||||
|
||||
.. autoclass:: flask.Response
|
||||
:members: set_cookie, data, mimetype
|
||||
|
||||
.. attribute:: headers
|
||||
|
||||
A :class:`Headers` object representing the response headers.
|
||||
|
||||
.. attribute:: status_code
|
||||
|
||||
The response status as integer.
|
||||
|
||||
|
||||
Sessions
|
||||
--------
|
||||
|
|
|
|||
|
|
@ -21,4 +21,5 @@ you want to dive into all the internal parts of Flask, check out the
|
|||
patterns
|
||||
api
|
||||
deploying
|
||||
testing
|
||||
becomingbig
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue