diff options
author | Aldo Cortesi <aldo@nullcube.com> | 2016-10-20 10:32:09 +1300 |
---|---|---|
committer | Aldo Cortesi <aldo@nullcube.com> | 2016-10-20 10:32:09 +1300 |
commit | 95551265852e6ff05ab5e5204e1a919f66fa4eae (patch) | |
tree | a70edd6e89742e3b744d558a1b91138daa6454e6 /netlib/websockets/frame.py | |
parent | a684585e7cf7099ea61f23b3176b492883f19f00 (diff) | |
download | mitmproxy-95551265852e6ff05ab5e5204e1a919f66fa4eae.tar.gz mitmproxy-95551265852e6ff05ab5e5204e1a919f66fa4eae.tar.bz2 mitmproxy-95551265852e6ff05ab5e5204e1a919f66fa4eae.zip |
netlib.utils.BiDi -> mitmproxy.types.bidi.BiDi
Diffstat (limited to 'netlib/websockets/frame.py')
-rw-r--r-- | netlib/websockets/frame.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/netlib/websockets/frame.py b/netlib/websockets/frame.py index e022a95c..26303094 100644 --- a/netlib/websockets/frame.py +++ b/netlib/websockets/frame.py @@ -6,6 +6,7 @@ from netlib import tcp from mitmproxy.utils import strutils from netlib import utils from mitmproxy.utils import human +from mitmproxy.types import bidi from .masker import Masker @@ -15,7 +16,7 @@ MAX_64_BIT_INT = (1 << 64) DEFAULT = object() # RFC 6455, Section 5.2 - Base Framing Protocol -OPCODE = utils.BiDi( +OPCODE = bidi.BiDi( CONTINUE=0x00, TEXT=0x01, BINARY=0x02, @@ -25,7 +26,7 @@ OPCODE = utils.BiDi( ) # RFC 6455, Section 7.4.1 - Defined Status Codes -CLOSE_REASON = utils.BiDi( +CLOSE_REASON = bidi.BiDi( NORMAL_CLOSURE=1000, GOING_AWAY=1001, PROTOCOL_ERROR=1002, |