Package cherrypy :: Package lib :: Module http :: Class HeaderElement
[hide private]
[frames] | no frames]

Class HeaderElement

source code

object --+
         |
        HeaderElement
Known Subclasses:

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
source code
 
__unicode__(self) source code
 
__str__(self)
str(x)
source code

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

Class Methods [hide private]
 
from_str(cls, elementstr)
Construct an instance from a string of the form 'token;key=val'.
source code
Static Methods [hide private]
 
parse(elementstr)
Transform 'token;key=val' to ('token', {'key': 'val'}).
source code
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)

__str__(self)
(Informal representation operator)

source code 

str(x)

Overrides: object.__str__
(inherited documentation)