aboutsummaryrefslogtreecommitdiffstats
path: root/pathod/templates/docs_lang_responses.html
diff options
context:
space:
mode:
authorAldo Cortesi <aldo@nullcube.com>2016-06-07 12:55:32 +1200
committerAldo Cortesi <aldo@nullcube.com>2016-06-07 12:55:32 +1200
commite037fe05ff1f0c2893b3f51e06e0261ca4245d63 (patch)
tree020454af687b48ddc58e0ce4442d78d91e0988ef /pathod/templates/docs_lang_responses.html
parent2b19a33738b20181d7b6ff10a9ffbf6c51ac96c2 (diff)
downloadmitmproxy-e037fe05ff1f0c2893b3f51e06e0261ca4245d63.tar.gz
mitmproxy-e037fe05ff1f0c2893b3f51e06e0261ca4245d63.tar.bz2
mitmproxy-e037fe05ff1f0c2893b3f51e06e0261ca4245d63.zip
Migrate pathod docs to Sphinx
All the content of the pathod docs are moved into Sphinx. The interactive format has not translated well to static docs, and there's still a lot of rewriting, format fixing, structuring, etc to be done.
Diffstat (limited to 'pathod/templates/docs_lang_responses.html')
-rw-r--r--pathod/templates/docs_lang_responses.html88
1 files changed, 0 insertions, 88 deletions
diff --git a/pathod/templates/docs_lang_responses.html b/pathod/templates/docs_lang_responses.html
deleted file mode 100644
index 9a85ff1a..00000000
--- a/pathod/templates/docs_lang_responses.html
+++ /dev/null
@@ -1,88 +0,0 @@
-<pre class="example">code:[colon-separated list of features]</pre>
-
-<table class="table table-bordered">
- <tbody>
- <tr>
- <td>code</td>
- <td>
- <p>An integer specifying the HTTP response code.</p>
- <p>
- The special method <b>ws</b> creates a valid websocket upgrade
- response (code 101), and moves pathod to websocket mode. Apart
- from that, websocket responses are just like any other, and all
- aspects of the response can be over-ridden.
- </p>
- </td>
- </tr>
-
- <tr>
- <td>m<a href="#valuespec">VALUE</a></td>
- <td>
- <span class="badge badge-info">HTTP/1 only</span> HTTP Reason message.
- Automatically chosen according to the response code if not specified.
- </td>
- </tr>
-
- <tr>
- <td>h<a href="#valuespec">VALUE</a>=<a href="#valuespec">VALUE</a></td>
- <td>
- Set a header.
- </td>
- </tr>
-
- <tr>
- <td>r</td>
- <td>
- Set the "raw" flag on this response. Pathod will not calculate a Content-Length header
- if a body is set, or add a Date header to the response.
- </td>
- </tr>
-
- <tr>
- <td>l<a href="#valuespec">VALUE</a></td>
- <td>
- A shortcut for setting the Location header. Equivalent to h"Location"=VALUE
- </td>
- </tr>
-
- <tr>
- <td>c<a href="#valuespec">VALUE</a></td>
- <td>
- A shortcut for setting the Content-Type header. Equivalent to h"Content-Type"=VALUE
- </td>
- </tr>
-
- <tr>
- <td>b<a href="#valuespec">VALUE</a></td>
- <td>
- Set the body. The appropriate Content-Length header is added automatically unless
- the "r" flag is set.
- </td>
- </tr>
-
- <tr>
- <td>d<a href="#offsetspec">OFFSET</a></td>
- <td>
- <span class="badge badge-info">HTTP/1 only</span> Disconnect after
- OFFSET bytes.
- </td>
- </tr>
-
- <tr>
- <td>i<a href="#offsetspec">OFFSET</a>,<a href="#valuespec">VALUE</a></td>
- <td>
- <span class="badge badge-info">HTTP/1 only</span> Inject the specified
- value at the offset.
- </td>
- </tr>
-
- <tr>
- <td>p<a href="#offsetspec">OFFSET</a>,SECONDS</td>
- <td>
- <span class="badge badge-info">HTTP/1 only</span> Pause for SECONDS
- seconds after OFFSET bytes. SECONDS can be an integer or "f" to pause
- forever.
- </td>
- </tr>
- </tbody>
-</table>