浏览代码

cookbooks/devel/pseudovariables: docs for $mhttpd(key) variable

Daniel-Constantin Mierla 2 年之前
父节点
当前提交
8609b898e6
共有 1 个文件被更改,包括 13 次插入0 次删除
  1. 13 0
      docs/cookbooks/devel/pseudovariables.md

+ 13 - 0
docs/cookbooks/devel/pseudovariables.md

@@ -3423,6 +3423,19 @@ The key can be:
 -   $x_rs:
 -   $x_rr:
 
+## microhttpd module variables
+
+`$mhttpd(key)` - return attributes of the HTTP request received by microhttpd module.
+
+The key can be:
+
+  - `url` - the http url
+  - `data` - the body of http request
+  - `size` - the size of the body
+  - `method` - the http method
+  - `srcip` - the source ip
+  - `version` - the http version
+
 ## $C(xy) - Foreground and background colors
 
 $C(xy) - reference to an escape sequence. “x” represents the foreground