mitmproxy/test/serv.py

9 lines
227 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 = ('127.0.0.1', port)
2010-02-16 04:09:07 +00:00
return HTTPServer(server_address, handler.TestRequestHandler)