From 97fe026c3230e1be12536e7390ef374447ffe9e8 Mon Sep 17 00:00:00 2001 From: Aldo Cortesi Date: Tue, 24 Jul 2012 21:45:05 +1200 Subject: Add basic docs for request spec language. --- libpathod/templates/docs_lang.html | 95 ++++++++++++++++++++++++++++---------- 1 file changed, 71 insertions(+), 24 deletions(-) (limited to 'libpathod/templates/docs_lang.html') diff --git a/libpathod/templates/docs_lang.html b/libpathod/templates/docs_lang.html index 8f78adbe..4325ef39 100644 --- a/libpathod/templates/docs_lang.html +++ b/libpathod/templates/docs_lang.html @@ -21,18 +21,14 @@ - + - + - + - + - + - + - + - +
- hVALUE=VALUE - hVALUE=VALUE Set a header.
- bVALUE - bVALUE Set the body. When the body is set, pathod will automatically set the appropriate Content-Length header. @@ -40,9 +36,7 @@
- cVALUE - cVALUE A shortcut for setting the Content-Type header. Equivalent to h"Content-Type"=VALUE @@ -50,18 +44,14 @@
- iOFFSET,VALUE - iOFFSET,VALUE Inject the specified value at the offset.
- lVALUE - lVALUE A shortcut for setting the Location header. Equivalent to h"Location"=VALUE @@ -69,18 +59,14 @@
- dOFFSET - dOFFSET Disconnect after OFFSET bytes.
- pSECONDS,OFFSET - pSECONDS,OFFSET Pause for SECONDS seconds after OFFSET bytes. SECONDS can be an integer or "f" to pause forever. @@ -88,9 +74,7 @@
- r - r Set the "raw" flag on this response. Pathod will not calculate a Content-Length header if a body is set, or add @@ -106,6 +90,69 @@ + +

The general form of a request is as follows:

+ +
method:path:[colon-separated list of features]

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
hVALUE=VALUE + Set a header. +
bVALUE + Set the body. When the body is set, pathod will + automatically set the appropriate Content-Length header. +
cVALUE + A shortcut for setting the Content-Type header. Equivalent to + h"Content-Type"=VALUE +
iOFFSET,VALUE + Inject the specified value at the offset. +
dOFFSET + Disconnect after OFFSET bytes. +
pSECONDS,OFFSET + Pause for SECONDS seconds after OFFSET bytes. SECONDS can + be an integer or "f" to pause forever. +
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. +
+ -- cgit v1.2.3