使用7.0.x版本的mitmproxy,去除外置mitmproxy依赖,可简化http网络开销

This commit is contained in:
2022-06-06 12:25:42 +08:00
parent 77d4854530
commit 8211068215
12 changed files with 119 additions and 28 deletions

9
proxy/common.py Normal file
View File

@ -0,0 +1,9 @@
import time
class MessagePayload(object):
def __init__(self, body: bytes):
self.body = body
self.timestamp: float = time.time()
self.request_url: str = ""
self.request_query: dict[str, str] = {}