mitmproxy/test/serv.py

11 lines
220 B
Python
Raw Normal View History

2011-08-03 22:34:34 +00:00
import socket
2010-02-16 04:09:07 +00:00
from SocketServer import BaseServer
from BaseHTTPServer import HTTPServer
import handler
def make(port):
server_address = ('', port)
return HTTPServer(server_address, handler.TestRequestHandler)