mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-26 18:18:25 +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()
|
||
|
]
|