使用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

View File

@ -1,11 +0,0 @@
import time
from queue import SimpleQueue
MESSAGE_QUEUE: "SimpleQueue[MessagePayload]" = SimpleQueue()
class MessagePayload(object):
def __init__(self, body: bytes, timestamp: str = ""):
self.request_timestamp = timestamp
self.body = body
self.curretnt_timestamp = time.time()