@marcel91200 / caddy Mirror · read-only / commits / 6cadb60f
Fork 0

Fast and extensible multi-platform HTTP/1-2-3 web server with automatic HTTPS

Mirrored from https://github.com/Slazee/caddy.git

Synced Nov 14, 00:15 UTC

templates: Document .OriginalReq

Close caddyserver/website#91

Matthew Holt committed Jan 5, 2022 at 13:59 UTC 6cadb60fa2308f24a20a32c3f8d5e3a521c277ff
1 file changed +4
modules/caddyhttp/templates/templates.go
+4
@@ -153,6 +153,10 @@ func init() {
153 // {{.Req.Header.Get "User-Agent"}}
154 // ```
155 //
156 +// ##### `.OriginalReq`
157 +//
158 +// Like .Req, except it accesses the original HTTP request before rewrites or other internal modifications.
159 +//
160 // ##### `.RespHeader.Add`
161 //
162 // Adds a header field to the HTTP response.