Bläddra i källkod

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

Daniel-Constantin Mierla 2 år sedan
förälder
incheckning
8609b898e6
1 ändrade filer med 13 tillägg och 0 borttagningar
  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