Package openid :: Package server :: Module server :: Class WebResponse
[hide private]
[frames] | no frames]

Class WebResponse

source code

object --+
         |
        WebResponse

I am a response to an OpenID request in terms a web server understands.

I generally come from an Encoder, either directly or from Server.encodeResponse.

Instance Methods [hide private]
 
__init__(self, code=200, headers=None, body='')
Construct me.
source code

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

Instance Variables [hide private]
str body
The body of this response.
int code
The HTTP code of this response.
dict headers
Headers to include in this response.
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, code=200, headers=None, body='')
(Constructor)

source code 

Construct me.

These parameters are assigned directly as class attributes, see my class documentation for their descriptions.

Overrides: object.__init__