| Trees | Indices | Help |
|---|
|
|
Headers for managing subscriptions.
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
ALL_HEADERS = set([SUBSCRIBE, SUBSCRIPTION_ID, TOPIC_ID, TOPIC
|
|||
|
|||
Set a header value, ensuring the key is an allowed value. Args: key: str, the header key. value: str, the header value. Raises: ValueError if key is not one of the accepted headers. |
Get a header value, normalizing the key case. Args: key: str, the header key. Returns: String header value. Raises: KeyError if the key is not one of the accepted headers. |
Applies the subscription headers. Args: headers: dict of headers to insert values into. |
Read from headers. Args: headers: dict of headers to read from. |
|
|||
ALL_HEADERS
|
| Trees | Indices | Help |
|---|
| Generated by Epydoc 3.0.1 on Thu Jan 24 16:14:37 2013 | http://epydoc.sourceforge.net |