Package amplee :: Package handler :: Package store :: Package wsgi :: Module tools :: Class HeaderElement
[hide private]
[frames] | no frames]

Class HeaderElement

source code

object --+
         |
        HeaderElement
Known Subclasses:
AcceptElement

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



Instance Methods [hide private]
  __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 [hide private]
  from_str(cls, elementstr)
Construct an instance from a string of the form 'token;key=val'.

Static Methods [hide private]
  parse(elementstr)
Transform 'token;key=val' to ('token', {'key': 'val'}).

Properties [hide private]

Inherited from object: __class__


Method Details [hide private]

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

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

Overrides: object.__init__
(inherited documentation)

__unicode__(self)

source code 
None

__str__(self)
(Informal representation operator)

source code 
str(x)

Overrides: object.__str__
(inherited documentation)

parse(elementstr)
Static Method

source code 
Transform 'token;key=val' to ('token', {'key': 'val'}).

from_str(cls, elementstr)
Class Method

source code 
Construct an instance from a string of the form 'token;key=val'.