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

Type WebResponse

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.
Method Summary
  __init__(self, code, headers, body)
Construct me.
Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

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

Method Details

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

Construct me.

These parameters are assigned directly as class attributes, see my class documentation for their descriptions.
Overrides:
__builtin__.object.__init__

Instance Variable Details

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

Generated by Epydoc 2.1 on Fri Dec 14 16:10:53 2007 http://epydoc.sf.net