mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-12-04 20:47: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()
|
||
|
]
|