From 6cadb60fa2308f24a20a32c3f8d5e3a521c277ff Mon Sep 17 00:00:00 2001 From: Matthew Holt Date: Wed, 5 Jan 2022 13:59:59 -0700 Subject: templates: Document .OriginalReq Close caddyserver/website#91 --- modules/caddyhttp/templates/templates.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'modules/caddyhttp/templates') 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. -- cgit v1.2.3