mitmproxy/test/serv.py
2011-08-04 10:34:34 +12:00

11 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)