summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorMatthew Holt <mholt@users.noreply.github.com>2022-01-05 13:59:59 -0700
committerMatthew Holt <mholt@users.noreply.github.com>2022-01-05 13:59:59 -0700
commit6cadb60fa2308f24a20a32c3f8d5e3a521c277ff (patch)
treeb6fface4be9eafb5fb0cece90dc62a1228a387ec /modules
parent2e46c2ac1d860230a80de5fd7bc85c8c9429d3f4 (diff)
templates: Document .OriginalReq
Close caddyserver/website#91
Diffstat (limited to 'modules')
-rw-r--r--modules/caddyhttp/templates/templates.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/caddyhttp/templates/templates.go b/modules/caddyhttp/templates/templates.go
index 80efded..f7332a9 100644
--- a/modules/caddyhttp/templates/templates.go
+++ b/modules/caddyhttp/templates/templates.go
@@ -153,6 +153,10 @@ func init() {
// {{.Req.Header.Get "User-Agent"}}
// ```
//
+// ##### `.OriginalReq`
+//
+// Like .Req, except it accesses the original HTTP request before rewrites or other internal modifications.
+//
// ##### `.RespHeader.Add`
//
// Adds a header field to the HTTP response.