autobahn.websocket.compress_snappy¶
Classes¶
permessage-snappy WebSocket extension processor. |
|
Mixin class for this extension. |
|
Set of extension parameters for permessage-snappy WebSocket extension |
|
Set of parameters with which to accept an permessage-snappy offer |
|
Set of parameters for permessage-snappy responded by server. |
|
Set of parameters with which to accept an permessage-snappy response |
Module Contents¶
- class PerMessageSnappy(is_server, server_no_context_takeover, client_no_context_takeover)[source]¶
Bases:
autobahn.websocket.compress_base.PerMessageCompress,PerMessageSnappyMixinpermessage-snappy WebSocket extension processor.
- class PerMessageSnappyOffer(accept_no_context_takeover=True, request_no_context_takeover=False)[source]¶
Bases:
autobahn.websocket.compress_base.PerMessageCompressOffer,PerMessageSnappyMixinSet of extension parameters for permessage-snappy WebSocket extension offered by a client to a server.
- __json__()[source]¶
Returns a JSON serializable object representation.
- Returns:
JSON serializable representation.
- Return type:
- __repr__()[source]¶
Returns Python object representation that can be eval’ed to reconstruct the object.
- Returns:
Python string representation.
- Return type:
- get_extension_string()[source]¶
Returns the WebSocket extension configuration string as sent to the server.
- Returns:
PMCE configuration string.
- Return type:
- classmethod parse(params)[source]¶
Parses a WebSocket extension offer for permessage-snappy provided by a client to a server.
- Parameters:
params (list) – Output from
autobahn.websocket.WebSocketProtocol._parseExtensionsHeader().- Returns:
A new instance of
autobahn.compress.PerMessageSnappyOffer.- Return type:
obj
- class PerMessageSnappyOfferAccept(offer, request_no_context_takeover=False, no_context_takeover=None)[source]¶
Bases:
autobahn.websocket.compress_base.PerMessageCompressOfferAccept,PerMessageSnappyMixinSet of parameters with which to accept an permessage-snappy offer from a client by a server.
- __json__()[source]¶
Returns a JSON serializable object representation.
- Returns:
JSON serializable representation.
- Return type:
- __repr__()[source]¶
Returns Python object representation that can be eval’ed to reconstruct the object.
- Returns:
Python string representation.
- Return type:
- class PerMessageSnappyResponse(client_no_context_takeover, server_no_context_takeover)[source]¶
Bases:
autobahn.websocket.compress_base.PerMessageCompressResponse,PerMessageSnappyMixinSet of parameters for permessage-snappy responded by server.
- __json__()[source]¶
Returns a JSON serializable object representation.
- Returns:
JSON serializable representation.
- Return type:
- __repr__()[source]¶
Returns Python object representation that can be eval’ed to reconstruct the object.
- Returns:
Python string representation.
- Return type:
- classmethod parse(params)[source]¶
Parses a WebSocket extension response for permessage-snappy provided by a server to a client.
- Parameters:
params (list) – Output from
autobahn.websocket.WebSocketProtocol._parseExtensionsHeader().- Returns:
A new instance of
autobahn.compress.PerMessageSnappyResponse.- Return type:
obj
- class PerMessageSnappyResponseAccept(response, no_context_takeover=None)[source]¶
Bases:
autobahn.websocket.compress_base.PerMessageCompressResponseAccept,PerMessageSnappyMixinSet of parameters with which to accept an permessage-snappy response from a server by a client.
- __json__()[source]¶
Returns a JSON serializable object representation.
- Returns:
JSON serializable representation.
- Return type: