mitmproxy/test/serv.py

7 lines
177 B
Python
Raw Normal View History

2010-02-16 04:09:07 +00:00
from BaseHTTPServer import HTTPServer
import handler
def make(port):
server_address = ('127.0.0.1', port)
2010-02-16 04:09:07 +00:00
return HTTPServer(server_address, handler.TestRequestHandler)