autobahn.websocket.compress_bzip2¶
Classes¶
permessage-bzip2 WebSocket extension processor. |
|
Mixin class for this extension. |
|
Set of extension parameters for permessage-bzip2 WebSocket extension |
|
Set of parameters with which to accept an permessage-bzip2 offer |
|
Set of parameters for permessage-bzip2 responded by server. |
|
Set of parameters with which to accept an permessage-bzip2 response |
Module Contents¶
- class PerMessageBzip2(is_server, server_max_compress_level, client_max_compress_level)[source]¶
Bases:
autobahn.websocket.compress_base.PerMessageCompress,PerMessageBzip2Mixinpermessage-bzip2 WebSocket extension processor.
- class PerMessageBzip2Mixin[source]¶
Bases:
objectMixin class for this extension.
- class PerMessageBzip2Offer(accept_max_compress_level=True, request_max_compress_level=0)[source]¶
Bases:
autobahn.websocket.compress_base.PerMessageCompressOffer,PerMessageBzip2MixinSet of extension parameters for permessage-bzip2 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-bzip2 provided by a client to a server.
- Parameters:
params (list) – Output from
autobahn.websocket.WebSocketProtocol._parseExtensionsHeader().- Returns:
object – A new instance of
autobahn.compress.PerMessageBzip2Offer.
- class PerMessageBzip2OfferAccept(offer, request_max_compress_level=0, compress_level=None)[source]¶
Bases:
autobahn.websocket.compress_base.PerMessageCompressOfferAccept,PerMessageBzip2MixinSet of parameters with which to accept an permessage-bzip2 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 PerMessageBzip2Response(client_max_compress_level, server_max_compress_level)[source]¶
Bases:
autobahn.websocket.compress_base.PerMessageCompressResponse,PerMessageBzip2MixinSet of parameters for permessage-bzip2 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-bzip2 provided by a server to a client.
- Parameters:
params (list) – Output from
autobahn.websocket.WebSocketProtocol._parseExtensionsHeader().- Returns:
A new instance of
autobahn.compress.PerMessageBzip2Response.- Return type:
obj
- class PerMessageBzip2ResponseAccept(response, compress_level=None)[source]¶
Bases:
autobahn.websocket.compress_base.PerMessageCompressResponseAccept,PerMessageBzip2MixinSet of parameters with which to accept an permessage-bzip2 response from a server by a client.
- __json__()[source]¶
Returns a JSON serializable object representation.
- Returns:
JSON serializable representation.
- Return type: