mitmproxy/test/serv.py
2012-02-20 11:04:07 +13:00

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)