mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-12-12 15:17:45 +00:00
14 lines
212 B
Python
14 lines
212 B
Python
|
|
||
|
class AddHeader:
|
||
|
def __init__(self):
|
||
|
self.num = 0
|
||
|
|
||
|
def response(self, flow):
|
||
|
self.num = self.num + 1
|
||
|
flow.response.headers["count"] = str(self.num)
|
||
|
|
||
|
|
||
|
addons = [
|
||
|
AddHeader()
|
||
|
]
|