Package circuits :: Package web :: Module headers :: Class HeaderElement

Class HeaderElement

object --+
         |
        HeaderElement
Known Subclasses:

An element (with parameters) from an HTTP header's element list.

Instance Methods
 
__init__(self, value, params=None)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
 
__unicode__(self)
 
__str__(self)
str(x)

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

Class Methods
 
from_str(cls, elementstr)
Construct an instance from a string of the form 'token;key=val'.
Static Methods
 
parse(elementstr)
Transform 'token;key=val' to ('token', {'key': 'val'}).
Properties

Inherited from object: __class__

Method Details

__init__(self, value, params=None)
(Constructor)

 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Overrides: object.__init__
(inherited documentation)

__str__(self)
(Informal representation operator)

 

str(x)

Overrides: object.__str__
(inherited documentation)