WebKit.Message | index /usr/local/share/webware/WebKit/Message.py

`Message
A very general (dumb) message class.`

Classes

``

__builtin__.object
  Message

class Message(__builtin__.object)
`` | `A very general message class. Message is the abstract parent class for both Request and Response, and implements the behavior that is generic to both. Messages have: * A set of arguments. * A protocol. * A content type and length. FUTURE * Support for different types of encodings`

Methods defined here:

__init__(self)

arg(self, name, default=<class 'MiscUtils.NoDefault'>)

argNames(self)
  `Return a list of argument names.`

clearArgs(self)

deleteArg(self, name)

hasArg(self, name)

setArg(self, name, value)

writeExceptionReport(self, handler)

Static methods defined here:

contentLength()
  `Return the length of the message body or -1 if not known.`

contentType()
  `Return the MIME type of the message body or None if not known.`

protocol()
  `Return the protocol.
  Returns the name and version of the protocol the message uses
  in the form protocol/majorVersion.minorVersion, for example, HTTP/1.1.`

Data descriptors defined here:

__dict__
  `dictionary for instance variables (if defined)`

__weakref__
  `list of weak references to the object (if defined)`