Part of twisted.web2.http_headers View Source View In Hierarchy
Method | __init__ | |
Method | parse | Parse the given header based on its given name. |
Method | generate | Generate the given header based on its given name. |
Method | updateParsers | Update en masse the parser maps. |
Method | addParser | Add an individual parser chain for the given header. |
Method | updateGenerators | Update en masse the generator maps. |
Method | addGenerators | Add an individual generator chain for the given header. |
Method | update | Conveniently update parsers and generators all at once. |
Parameters | name | The header name to parse.
(type: str
) |
header | A list of unparsed headers.
(type: list of str
) | |
Returns | The return value is the parsed header representation, it is dependent on the header. See the HTTP Headers document. |
Parameters | name | The header name to generate.
(type: str
) |
header | A parsed header, such as the output of HeaderHandler .parse.
| |
Returns | list of str each representing a generated HTTP
header.
|
Parameters | parsers | Map of header names to parser chains.
(type: dict
) |
Parameters | name | Name of the header to add
(type: str
) |
value | The parser chain
(type: str
) |
Parameters | parsers | Map of header names to generator chains.
(type: dict
) |
Parameters | name | Name of the header to add
(type: str
) |
value | The generator chain
(type: str
) |