mitmproxy/libmproxy/proxy/primitives.py

15 lines
265 B
Python
Raw Normal View History

from __future__ import absolute_import
2015-08-29 23:21:58 +00:00
import collections
2015-07-03 00:47:12 +00:00
from netlib import socks, tcp
2014-03-09 20:51:24 +00:00
2015-05-30 00:03:28 +00:00
2015-08-29 23:21:58 +00:00
class Log(object):
2014-03-13 00:22:12 +00:00
def __init__(self, msg, level="info"):
2014-03-13 00:04:45 +00:00
self.msg = msg
2015-05-30 00:03:28 +00:00
self.level = level
2015-08-29 23:21:58 +00:00
class Kill(Exception):
"""
Kill a connection.
"""