Skip to content

Commit 6cadb60

Browse files
committed
templates: Document .OriginalReq
Close caddyserver/website#91
1 parent 2e46c2a commit 6cadb60

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

modules/caddyhttp/templates/templates.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,10 @@ func init() {
153153
// {{.Req.Header.Get "User-Agent"}}
154154
// ```
155155
//
156+
// ##### `.OriginalReq`
157+
//
158+
// Like .Req, except it accesses the original HTTP request before rewrites or other internal modifications.
159+
//
156160
// ##### `.RespHeader.Add`
157161
//
158162
// Adds a header field to the HTTP response.

0 commit comments

Comments
 (0)