diff options
author | Thomas Kriechbaumer <Kriechi@users.noreply.github.com> | 2016-09-01 10:39:57 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-09-01 10:39:57 +0200 |
commit | 55d938b880fd861a22ac66da0da9a741bdd9abd5 (patch) | |
tree | d469bbd0dd5b1966591a332bf2094d4389100219 /netlib/websockets/__init__.py | |
parent | 281d779fa3eb6b81ec76d046337275c0a82eff46 (diff) | |
parent | 0d0c2c788df4b60e951e6fcc13b479de8cec22c1 (diff) | |
download | mitmproxy-55d938b880fd861a22ac66da0da9a741bdd9abd5.tar.gz mitmproxy-55d938b880fd861a22ac66da0da9a741bdd9abd5.tar.bz2 mitmproxy-55d938b880fd861a22ac66da0da9a741bdd9abd5.zip |
Merge pull request #1488 from mitmproxy/websockets
add WebSockets support
Diffstat (limited to 'netlib/websockets/__init__.py')
-rw-r--r-- | netlib/websockets/__init__.py | 34 |
1 files changed, 30 insertions, 4 deletions
diff --git a/netlib/websockets/__init__.py b/netlib/websockets/__init__.py index fea696d9..e14e8a7d 100644 --- a/netlib/websockets/__init__.py +++ b/netlib/websockets/__init__.py @@ -1,11 +1,37 @@ from __future__ import absolute_import, print_function, division -from .frame import FrameHeader, Frame, OPCODE -from .protocol import Masker, WebsocketsProtocol + +from .frame import FrameHeader +from .frame import Frame +from .frame import OPCODE +from .frame import CLOSE_REASON +from .masker import Masker +from .utils import MAGIC +from .utils import VERSION +from .utils import client_handshake_headers +from .utils import server_handshake_headers +from .utils import check_handshake +from .utils import check_client_version +from .utils import create_server_nonce +from .utils import get_extensions +from .utils import get_protocol +from .utils import get_client_key +from .utils import get_server_accept __all__ = [ "FrameHeader", "Frame", - "Masker", - "WebsocketsProtocol", "OPCODE", + "CLOSE_REASON", + "Masker", + "MAGIC", + "VERSION", + "client_handshake_headers", + "server_handshake_headers", + "check_handshake", + "check_client_version", + "create_server_nonce", + "get_extensions", + "get_protocol", + "get_client_key", + "get_server_accept", ] |