mirror of
https://github.com/zhigang1992/mitmproxy.git
synced 2026-05-12 17:48:49 +08:00
15 lines
328 B
Python
15 lines
328 B
Python
import netlib
|
|
|
|
class PathodHandler(netlib.BaseHandler):
|
|
def handle(self):
|
|
print "Here"
|
|
|
|
|
|
class PathodServer(netlib.TCPServer):
|
|
def __init__(self, addr):
|
|
netlib.TCPServer.__init__(self, addr)
|
|
|
|
def handle_connection(self, request, client_address):
|
|
PathodHandler(request, client_address, self)
|
|
|