diff --git a/libpathod/templates/docs_lang.html b/libpathod/templates/docs_lang.html index 9999282df..46f5f4012 100644 --- a/libpathod/templates/docs_lang.html +++ b/libpathod/templates/docs_lang.html @@ -8,152 +8,150 @@ +
-The general form of a response is as follows:
+ +code[MESSAGE]:[colon-separated list of features]-
The general form of a response is as follows:
- -code[MESSAGE]:[colon-separated list of features]+
hVALUE=VALUE | ++ Set a header. + | +
hVALUE=VALUE | -- Set a header. - | -
bVALUE | ++ Set the body. When the body is set, pathod will + automatically set the appropriate Content-Length 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 + | +
cVALUE | -- A shortcut for setting the Content-Type header. Equivalent to - h"Content-Type"=VALUE - | -
iOFFSET,VALUE | ++ Inject the specified value at the offset. + | +
iOFFSET,VALUE | -- Inject the specified value at the offset. - | -
lVALUE | ++ A shortcut for setting the Location header. Equivalent to + h"Location"=VALUE + | +
lVALUE | -- A shortcut for setting the Location header. Equivalent to - h"Location"=VALUE - | -
dOFFSET | ++ Disconnect after OFFSET bytes. + | +
dOFFSET | -- Disconnect after OFFSET bytes. - | -
pOFFSET,SECONDS | ++ Pause for SECONDS seconds after OFFSET bytes. SECONDS can + be an integer or "f" to pause forever. + | +
pOFFSET,SECONDS | -- 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. - | -
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. - | -
hVALUE=VALUE | ++ Set a header. + | +
cVALUE | -- A shortcut for setting the Content-Type header. Equivalent to - h"Content-Type"=VALUE - | -
bVALUE | ++ Set the body. When the body is set, pathod will + automatically set the appropriate Content-Length header. + | +
iOFFSET,VALUE | -- Inject the specified value at the offset. - | -
cVALUE | ++ A shortcut for setting the Content-Type header. Equivalent to + h"Content-Type"=VALUE + | +
dOFFSET | -- Disconnect after OFFSET bytes. - | -
iOFFSET,VALUE | ++ Inject the specified value at the offset. + | +
pOFFSET,SECONDS | -- Pause for SECONDS seconds after OFFSET bytes. SECONDS can - be an integer or "f" to pause forever. - | -
dOFFSET | ++ Disconnect after OFFSET bytes. + | +
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. - | -
http://localhost:9999-
Check out the complete language docs. Here diff --git a/libpathod/templates/response_previewform.html b/libpathod/templates/response_previewform.html index 3b664433b..9934fbf75 100644 --- a/libpathod/templates/response_previewform.html +++ b/libpathod/templates/response_previewform.html @@ -13,7 +13,8 @@ {% endif %} -Don't know what to type? +Examples... +
Check out the complete language docs. Here are some examples to get you started: