From adac9a35c3b0f7fb46a47495950ce5ca2dcc80e3 Mon Sep 17 00:00:00 2001
From: Aldo Cortesi The general form of a response is as follows: The general form of a response is as follows: The general form of a request is as follows: The general form of a request is as follows:Responses
-code[MESSAGE]:[colon-separated list of features]
- 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.
-
- Requests
+
+
+ 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.
+
+ method:path:[colon-separated list of features]
-
-
-
+
-
+ hVALUE=VALUE
-
- Set a header.
-
- method:path:[colon-separated list of features]
-
-
+ 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.
-
-
+
-
+ 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.
+
+
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: