File: compression.rst

package info (click to toggle)
python-autobahn 17.10.1%2Bdfsg1-7
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 4,452 kB
  • sloc: python: 22,598; javascript: 2,705; makefile: 497; sh: 3
file content (46 lines) | stat: -rw-r--r-- 1,728 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
*********************
WebSocket Compression
*********************

Autobahn|Python supports the following WebSocket extensions for compression:

* `permessage-deflate <http://tools.ietf.org/html/draft-ietf-hybi-permessage-compression>`_
* permessage-bzip2
* permessage-snappy

You can find a complete example `here <https://github.com/crossbario/autobahn-python/tree/master/examples/twisted/websocket/echo_compressed>`_.

|


Per-Message Deflate
===================

The following classes provide the API to the **permessage-deflate** WebSocket extension functionality of AutobahnPython.

* :class:`autobahn.websocket.compress.PerMessageDeflateOffer`
* :class:`autobahn.websocket.compress.PerMessageDeflateOfferAccept`
* :class:`autobahn.websocket.compress.PerMessageDeflateResponse`
* :class:`autobahn.websocket.compress.PerMessageDeflateResponseAccept`


Per-Message Bzip2
=================

The following classes provide the API to the (non-standard) **permessage-bzip2** WebSocket extension functionality of Autobahn|Python.

* :class:`autobahn.websocket.compress.PerMessageBzip2Offer`
* :class:`autobahn.websocket.compress.PerMessageBzip2OfferAccept`
* :class:`autobahn.websocket.compress.PerMessageBzip2Response`
* :class:`autobahn.websocket.compress.PerMessageBzip2ResponseAccept`


Per-Message Snappy
==================

The following classes provide the API to the (non-standard) **permessage-snappy** WebSocket extension functionality of Autobahn|Python.

* :class:`autobahn.websocket.compress.PerMessageSnappyOffer`
* :class:`autobahn.websocket.compress.PerMessageSnappyOfferAccept`
* :class:`autobahn.websocket.compress.PerMessageSnappyResponse`
* :class:`autobahn.websocket.compress.PerMessageSnappyResponseAccept`