Package brisa :: Package core :: Module webserver :: Class Response
[hide private]
[frames] | no frames]

Class Response

source code

object --+
         |
        Response

Response wrapper class.

Instance Methods [hide private]
 
__init__(self, status, start_response)
Constructor for the Response class.
source code
 
_respond(self)
Sends the headers for this response.
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, status, start_response)
(Constructor)

source code 

Constructor for the Response class.

Parameters:
  • status (int) - response status code, can be modified later
  • start_response (callable) - wsgi start_response function
Overrides: object.__init__

_respond(self)

source code 

Sends the headers for this response. After this call, response.body should be returned to the WSGI server as the response payload.