aboutsummaryrefslogtreecommitdiffstats
path: root/examples/addons
diff options
context:
space:
mode:
authormadt1m <blackjuniper@protonmail.com>2018-06-23 03:02:39 +0200
committermadt1m <blackjuniper@protonmail.com>2018-06-23 03:02:39 +0200
commite842aa3798ee71812cc68ce0f3b7360edbc023c3 (patch)
treec8b2a2e27d9574dc7d6bf9e7b97cd0078e5d3144 /examples/addons
parentba144b15bc1a33f71200e54eb4a25894a11d6a53 (diff)
downloadmitmproxy-e842aa3798ee71812cc68ce0f3b7360edbc023c3.tar.gz
mitmproxy-e842aa3798ee71812cc68ce0f3b7360edbc023c3.tar.bz2
mitmproxy-e842aa3798ee71812cc68ce0f3b7360edbc023c3.zip
Added protobuf methods; implemented initial DB logic
Diffstat (limited to 'examples/addons')
-rw-r--r--examples/addons/protodumper.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/examples/addons/protodumper.py b/examples/addons/protodumper.py
new file mode 100644
index 00000000..6a1d676c
--- /dev/null
+++ b/examples/addons/protodumper.py
@@ -0,0 +1,5 @@
+from mitmproxy.io import protobuf
+
+
+def response(f):
+ protobuf.loads(protobuf.dumps(f))