mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-23 08:11:00 +00:00
Merge pull request #115 from Kriechi/move-tservers
move tservers to netlib module
This commit is contained in:
commit
dc7d41e7a5
@ -1,8 +1,10 @@
|
||||
from __future__ import (absolute_import, print_function, division)
|
||||
|
||||
import threading
|
||||
from six.moves import queue
|
||||
from io import StringIO
|
||||
import OpenSSL
|
||||
|
||||
from netlib import tcp
|
||||
from netlib import tutils
|
||||
|
@ -1,12 +1,11 @@
|
||||
import OpenSSL
|
||||
import mock
|
||||
|
||||
from netlib import tcp, http, tutils
|
||||
from netlib import tcp, http, tutils, tservers
|
||||
from netlib.exceptions import TcpDisconnect
|
||||
from netlib.http import Headers
|
||||
from netlib.http.http2.connections import HTTP2Protocol, TCPHandler
|
||||
from netlib.http.http2.frame import *
|
||||
from ... import tservers
|
||||
|
||||
class TestTCPHandlerWrapper:
|
||||
def test_wrapped(self):
|
||||
|
@ -10,8 +10,7 @@ import mock
|
||||
from OpenSSL import SSL
|
||||
import OpenSSL
|
||||
|
||||
from netlib import tcp, certutils, tutils
|
||||
from . import tservers
|
||||
from netlib import tcp, certutils, tutils, tservers
|
||||
from netlib.exceptions import InvalidCertificateException, TcpReadIncomplete, TlsException, \
|
||||
TcpTimeout, TcpDisconnect, TcpException
|
||||
|
||||
|
@ -2,12 +2,11 @@ import os
|
||||
|
||||
from netlib.http.http1 import read_response, read_request
|
||||
|
||||
from netlib import tcp, tutils, websockets, http
|
||||
from netlib import tcp, websockets, http, tutils, tservers
|
||||
from netlib.http import status_codes
|
||||
from netlib.tutils import treq
|
||||
|
||||
from netlib.exceptions import *
|
||||
from .. import tservers
|
||||
|
||||
|
||||
class WebSocketsEchoHandler(tcp.BaseHandler):
|
||||
|
Loading…
Reference in New Issue
Block a user