From 98a7aaca182ce6b879329bbaeb06efca284c6220 Mon Sep 17 00:00:00 2001 From: Aldo Cortesi Date: Fri, 5 Aug 2011 10:23:32 +1200 Subject: Documentation. --- doc-src/02-docstyle.css | 9 ++++++ doc-src/anticache.html | 3 ++ doc-src/clientreplay.html | 9 ++++-- doc-src/index.html | 4 --- doc-src/index.py | 1 - doc-src/library.html | 2 +- doc-src/mitmdump.html | 44 +++++++++++++++++++++++++++ doc-src/mitmproxy.html | 60 +++++++++++++++++++++++++++++++------ doc-src/mitmproxy/encodings.html | 0 doc-src/mitmproxy/index.py | 6 ---- doc-src/mitmproxy/interception.html | 38 ----------------------- doc-src/scripts.html | 2 +- doc-src/serverreplay.html | 15 +++++----- doc-src/sticky.html | 22 ++++++++++---- 14 files changed, 139 insertions(+), 76 deletions(-) delete mode 100644 doc-src/mitmproxy/encodings.html delete mode 100644 doc-src/mitmproxy/index.py delete mode 100644 doc-src/mitmproxy/interception.html (limited to 'doc-src') diff --git a/doc-src/02-docstyle.css b/doc-src/02-docstyle.css index 7a7f49a4..eee82c58 100644 --- a/doc-src/02-docstyle.css +++ b/doc-src/02-docstyle.css @@ -56,6 +56,13 @@ a { margin: 1em 0; } +/* Keyboard shortcuts */ +#bd em { + font-weight: bold; + color: #04B404; + font-style: normal; +} + #ft.doc { color: #aaa; border-top: 1px solid #aaa; @@ -111,3 +118,5 @@ li a { .highlight { font-size: 14px; } + + diff --git a/doc-src/anticache.html b/doc-src/anticache.html index a4d76e47..79f0683d 100644 --- a/doc-src/anticache.html +++ b/doc-src/anticache.html @@ -1,4 +1,7 @@ +- command-line: _--anticache_ +- mitmproxy shortcut: _o_, then _a_ + When the __anticache__ option is passed to mitmproxy, it removes headers (__if-none-match__ and __if-modified-since__) that might elicit a 304-not-modified response from the server. This is useful when you want to make diff --git a/doc-src/clientreplay.html b/doc-src/clientreplay.html index efc632f6..d4b1c3ff 100644 --- a/doc-src/clientreplay.html +++ b/doc-src/clientreplay.html @@ -1,11 +1,14 @@ +- command-line: _-c path_ +- mitmproxy shortcut: _c_ + Client-side replay does what it says on the tin: you provide a previously saved HTTP conversation, and mitmproxy replays the client requests one by one. Note that mitmproxy serializes the requests, waiting for a response from the server before starting the next request. This might differ from the recorded conversation, where requests may have been made concurrently. -You may want to use client-side replay in conjunction with the __anticache__ -option. This will modify requests to remove headers (e.g. if-modified-since) -that might cause a server to reply with a 304-not-modified. +You may want to use client-side replay in conjunction with the +[anticache](@!urlTo("anticache.html")!@) option. + diff --git a/doc-src/index.html b/doc-src/index.html index 61a033be..4638b091 100644 --- a/doc-src/index.html +++ b/doc-src/index.html @@ -2,10 +2,6 @@