mirror of
https://github.com/zhigang1992/mitmproxy.git
synced 2026-04-15 22:54:11 +08:00
7 lines
177 B
Python
7 lines
177 B
Python
from BaseHTTPServer import HTTPServer
|
|
import handler
|
|
|
|
def make(port):
|
|
server_address = ('127.0.0.1', port)
|
|
return HTTPServer(server_address, handler.TestRequestHandler)
|