mirror of
https://github.com/vee1e/mitmproxy.git
synced 2026-09-03 03:07:18 +00:00
10 lines
220 B
Python
10 lines
220 B
Python
import socket
|
|
from SocketServer import BaseServer
|
|
from BaseHTTPServer import HTTPServer
|
|
import handler
|
|
|
|
def make(port):
|
|
server_address = ('', port)
|
|
return HTTPServer(server_address, handler.TestRequestHandler)
|
|
|
|
|