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

Class WebResponse

source code

object --+

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
__init__(self, code=200, headers=None, body='')
Construct me.
source code

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

Instance Variables
str body
The body of this response.
int code
The HTTP code of this response.
dict headers
Headers to include in this response.

Inherited from object: __class__

Method Details

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

source code 

Construct me.

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

Overrides: object.__init__