Package openid :: Package server :: Module server :: Class WebResponse
[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=HTTP_OK, headers=None, body='')
Construct me.

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


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=HTTP_OK, 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__

Instance Variable Details [hide private]

body


The body of this response.
Type:
str

code


The HTTP code of this response.
Type:
int

headers


Headers to include in this response.
Type:
dict