autobahn.websocket.compress_snappy


Module Contents

Classes

PerMessageSnappyMixin

Mixin class for this extension.

PerMessageSnappyOffer

Set of extension parameters for permessage-snappy WebSocket extension

PerMessageSnappyOfferAccept

Set of parameters with which to accept an permessage-snappy offer

PerMessageSnappyResponse

Set of parameters for permessage-snappy responded by server.

PerMessageSnappyResponseAccept

Set of parameters with which to accept an permessage-snappy response

PerMessageSnappy

permessage-snappy WebSocket extension processor.

class autobahn.websocket.compress_snappy.PerMessageSnappyMixin[source]

Bases: object

Mixin class for this extension.

EXTENSION_NAME = permessage-snappy

Name of this WebSocket extension.

class autobahn.websocket.compress_snappy.PerMessageSnappyOffer(accept_no_context_takeover=True, request_no_context_takeover=False)[source]

Bases: autobahn.websocket.compress_base.PerMessageCompressOffer, PerMessageSnappyMixin

Set of extension parameters for permessage-snappy WebSocket extension offered by a client to a server.

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

get_extension_string()[source]

Returns the WebSocket extension configuration string as sent to the server.

Returns

PMCE configuration string.

Return type

str

__json__()[source]

Returns a JSON serializable object representation.

Returns

JSON serializable representation.

Return type

dict

__repr__()[source]

Returns Python object representation that can be eval’ed to reconstruct the object.

Returns

Python string representation.

Return type

str

class autobahn.websocket.compress_snappy.PerMessageSnappyOfferAccept(offer, request_no_context_takeover=False, no_context_takeover=None)[source]

Bases: autobahn.websocket.compress_base.PerMessageCompressOfferAccept, PerMessageSnappyMixin

Set of parameters with which to accept an permessage-snappy offer from a client by a server.

get_extension_string()[source]

Returns the WebSocket extension configuration string as sent to the server.

Returns

PMCE configuration string.

Return type

str

__json__()[source]

Returns a JSON serializable object representation.

Returns

JSON serializable representation.

Return type

dict

__repr__()[source]

Returns Python object representation that can be eval’ed to reconstruct the object.

Returns

Python string representation.

Return type

str

class autobahn.websocket.compress_snappy.PerMessageSnappyResponse(client_no_context_takeover, server_no_context_takeover)[source]

Bases: autobahn.websocket.compress_base.PerMessageCompressResponse, PerMessageSnappyMixin

Set of parameters for permessage-snappy responded by server.

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

__json__()[source]

Returns a JSON serializable object representation.

Returns

JSON serializable representation.

Return type

dict

__repr__()[source]

Returns Python object representation that can be eval’ed to reconstruct the object.

Returns

Python string representation.

Return type

str

class autobahn.websocket.compress_snappy.PerMessageSnappyResponseAccept(response, no_context_takeover=None)[source]

Bases: autobahn.websocket.compress_base.PerMessageCompressResponseAccept, PerMessageSnappyMixin

Set 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

dict

__repr__()[source]

Returns Python object representation that can be eval’ed to reconstruct the object.

Returns

Python string representation.

Return type

str

class autobahn.websocket.compress_snappy.PerMessageSnappy(is_server, server_no_context_takeover, client_no_context_takeover)[source]

Bases: autobahn.websocket.compress_base.PerMessageCompress, PerMessageSnappyMixin

permessage-snappy WebSocket extension processor.

classmethod create_from_response_accept(is_server, accept)[source]
classmethod create_from_offer_accept(is_server, accept)[source]
__json__()[source]
__repr__()[source]

Return repr(self).

start_compress_message()[source]
compress_message_data(data)[source]
end_compress_message()[source]
start_decompress_message()[source]
decompress_message_data(data)[source]
end_decompress_message()[source]