mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-23 00:01:36 +00:00
11 lines
245 B
Python
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)
|
||
|
|
||
|
|