mitmproxy/test/serv.py

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)