File size: 506 Bytes
fc0f7bd
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
.. _request:

Request & Response
==================

Instances of the Request and Response classes are passed into responders as the second
and third arguments, respectively.

.. code:: python

    import falcon


    class Resource(object):

        def on_get(self, req, resp):
            resp.body = '{"message": "Hello world!"}'
            resp.status = falcon.HTTP_200

Request
-------

.. autoclass:: falcon.Request
    :members:

Response
--------

.. autoclass:: falcon.Response
    :members: