aboutsummaryrefslogtreecommitdiffstats
path: root/doc-src/features/filters.html
diff options
context:
space:
mode:
authorAldo Cortesi <aldo@nullcube.com>2013-01-03 08:25:24 +1300
committerAldo Cortesi <aldo@nullcube.com>2013-01-03 08:25:24 +1300
commit101f92b2566adea605b9db69dba29e575414cbba (patch)
treeeafcfac61972f7a18c069d098accc4ce2cf1cfea /doc-src/features/filters.html
parentf578d68e555ff202a51b9f8672e540a964e31fed (diff)
downloadmitmproxy-101f92b2566adea605b9db69dba29e575414cbba.tar.gz
mitmproxy-101f92b2566adea605b9db69dba29e575414cbba.tar.bz2
mitmproxy-101f92b2566adea605b9db69dba29e575414cbba.zip
Docs: move features into their own directory
Diffstat (limited to 'doc-src/features/filters.html')
-rw-r--r--doc-src/features/filters.html36
1 files changed, 36 insertions, 0 deletions
diff --git a/doc-src/features/filters.html b/doc-src/features/filters.html
new file mode 100644
index 00000000..c7f0f78b
--- /dev/null
+++ b/doc-src/features/filters.html
@@ -0,0 +1,36 @@
+
+Many commands in __mitmproxy__ and __mitmdump__ take a filter expression.
+Filter expressions consist of the following operators:
+
+<table class="table">
+ <tbody>
+ <!--(for i in filt_help)-->
+ <tr>
+ <td class="filt_cmd">@!i[0]!@</td>
+ <td class="filt_help">@!i[1]!@</td>
+ </tr>
+ <!--(end)-->
+ </tbody>
+</table>
+
+- Regexes are Python-style
+- Regexes can be specified as quoted strings
+- Header matching (~h, ~hq, ~hs) is against a string of the form "name: value".
+- Strings with no operators are matched against the request URL.
+- The default binary operator is &amp;.
+
+Examples
+========
+
+URL containing "google.com":
+
+ google\.com
+
+Requests whose body contains the string "test":
+
+ ~q ~b test
+
+Anything but requests with a text/html content type:
+
+ !(~q & ~t \"text/html\")
+