mitmproxy/test/serv.py
2010-02-16 17:09:07 +13:00

11 lines
245 B
Python

import socket, os, cStringIO, tempfile
from SocketServer import BaseServer
from BaseHTTPServer import HTTPServer
import handler
def make(port):
server_address = ('', port)
return HTTPServer(server_address, handler.TestRequestHandler)