From d33d3663ecb166461d9cb5a78a29b44ee7a8fbb7 Mon Sep 17 00:00:00 2001 From: Maximilian Hils Date: Thu, 18 Feb 2016 13:03:40 +0100 Subject: combine projects --- pathod/templates/docs_lang_responses.html | 88 +++++++++++++++++++++++++++++++ 1 file changed, 88 insertions(+) create mode 100644 pathod/templates/docs_lang_responses.html (limited to 'pathod/templates/docs_lang_responses.html') diff --git a/pathod/templates/docs_lang_responses.html b/pathod/templates/docs_lang_responses.html new file mode 100644 index 00000000..9a85ff1a --- /dev/null +++ b/pathod/templates/docs_lang_responses.html @@ -0,0 +1,88 @@ +
code:[colon-separated list of features]
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
code +

An integer specifying the HTTP response code.

+

+ The special method ws 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. +

+
mVALUE + HTTP/1 only HTTP Reason message. + Automatically chosen according to the response code if not specified. +
hVALUE=VALUE + Set a header. +
r + 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. +
lVALUE + A shortcut for setting the Location header. Equivalent to h"Location"=VALUE +
cVALUE + A shortcut for setting the Content-Type header. Equivalent to h"Content-Type"=VALUE +
bVALUE + Set the body. The appropriate Content-Length header is added automatically unless + the "r" flag is set. +
dOFFSET + HTTP/1 only Disconnect after + OFFSET bytes. +
iOFFSET,VALUE + HTTP/1 only Inject the specified + value at the offset. +
pOFFSET,SECONDS + HTTP/1 only Pause for SECONDS + seconds after OFFSET bytes. SECONDS can be an integer or "f" to pause + forever. +
-- cgit v1.2.3