aboutsummaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/keys.yaml11
-rw-r--r--examples/simple/filter_flows.py2
-rw-r--r--examples/simple/io_write_dumpfile.py2
3 files changed, 13 insertions, 2 deletions
diff --git a/examples/keys.yaml b/examples/keys.yaml
new file mode 100644
index 00000000..a2b3d66a
--- /dev/null
+++ b/examples/keys.yaml
@@ -0,0 +1,11 @@
+-
+ # Simple global binding
+ key: ctrl a
+ cmd: replay.client @marked
+-
+ # Bind key only in the lfowlist
+ # Note that 1 is quoted, or YAML interprets it as a digit
+ key: "1"
+ ctx: ["flowlist"]
+ cmd: console.nav.down
+ help: Go to next flow \ No newline at end of file
diff --git a/examples/simple/filter_flows.py b/examples/simple/filter_flows.py
index aba240de..94d179d0 100644
--- a/examples/simple/filter_flows.py
+++ b/examples/simple/filter_flows.py
@@ -1,5 +1,5 @@
"""
-This scripts demonstrates how to use mitmproxy's filter pattern in scripts.
+This script demonstrates how to use mitmproxy's filter pattern in scripts.
"""
from mitmproxy import flowfilter
from mitmproxy import ctx, http
diff --git a/examples/simple/io_write_dumpfile.py b/examples/simple/io_write_dumpfile.py
index c8c59c62..5fcb0729 100644
--- a/examples/simple/io_write_dumpfile.py
+++ b/examples/simple/io_write_dumpfile.py
@@ -1,5 +1,5 @@
"""
-This script how to generate a mitmproxy dump file,
+This script demonstrates how to generate a mitmproxy dump file,
as it would also be generated by passing `-w` to mitmproxy.
In contrast to `-w`, this gives you full control over which
flows should be saved and also allows you to rotate files or log