autobahn.websocket.compress_deflate¶
Classes¶
permessage-deflate WebSocket extension processor. |
|
Mixin class for this extension. |
|
Set of extension parameters for permessage-deflate WebSocket extension |
|
Set of parameters with which to accept an permessage-deflate offer |
|
Set of parameters for permessage-deflate responded by server. |
|
Set of parameters with which to accept an permessage-deflate response |
Module Contents¶
- class PerMessageDeflate(is_server, server_no_context_takeover, client_no_context_takeover, server_max_window_bits, client_max_window_bits, mem_level, max_message_size=None)[source]¶
Bases:
autobahn.websocket.compress_base.PerMessageCompress,PerMessageDeflateMixinpermessage-deflate WebSocket extension processor.
- class PerMessageDeflateMixin[source]¶
Bases:
objectMixin class for this extension.
- class PerMessageDeflateOffer(accept_no_context_takeover=True, accept_max_window_bits=True, request_no_context_takeover=False, request_max_window_bits=0)[source]¶
Bases:
autobahn.websocket.compress_base.PerMessageCompressOffer,PerMessageDeflateMixinSet of extension parameters for permessage-deflate 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-deflate provided by a client to a server.
- Parameters:
params (list) – Output from
autobahn.websocket.WebSocketProtocol._parseExtensionsHeader().- Returns:
A new instance of
autobahn.compress.PerMessageDeflateOffer.- Return type:
obj
- class PerMessageDeflateOfferAccept(offer, request_no_context_takeover=False, request_max_window_bits=0, no_context_takeover=None, window_bits=None, mem_level=None, max_message_size=None)[source]¶
Bases:
autobahn.websocket.compress_base.PerMessageCompressOfferAccept,PerMessageDeflateMixinSet of parameters with which to accept an permessage-deflate 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 PerMessageDeflateResponse(client_max_window_bits, client_no_context_takeover, server_max_window_bits, server_no_context_takeover)[source]¶
Bases:
autobahn.websocket.compress_base.PerMessageCompressResponse,PerMessageDeflateMixinSet of parameters for permessage-deflate 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-deflate provided by a server to a client.
- Parameters:
params (list) – Output from
autobahn.websocket.WebSocketProtocol._parseExtensionsHeader().- Returns:
A new instance of
autobahn.compress.PerMessageDeflateResponse.- Return type:
obj
- class PerMessageDeflateResponseAccept(response, no_context_takeover=None, window_bits=None, mem_level=None, max_message_size=None)[source]¶
Bases:
autobahn.websocket.compress_base.PerMessageCompressResponseAccept,PerMessageDeflateMixinSet of parameters with which to accept an permessage-deflate response from a server by a client.
- __json__()[source]¶
Returns a JSON serializable object representation.
- Returns:
JSON serializable representation.
- Return type: