Browse Source

templates: Document .OriginalReq

Close caddyserver/website#91
master
Matthew Holt 3 years ago
parent
commit
6cadb60fa2
No known key found for this signature in database GPG Key ID: 2A349DD577D586A5
  1. 4
      modules/caddyhttp/templates/templates.go

4
modules/caddyhttp/templates/templates.go

@ -153,6 +153,10 @@ func init() {
// {{.Req.Header.Get "User-Agent"}} // {{.Req.Header.Get "User-Agent"}}
// ``` // ```
// //
// ##### `.OriginalReq`
//
// Like .Req, except it accesses the original HTTP request before rewrites or other internal modifications.
//
// ##### `.RespHeader.Add` // ##### `.RespHeader.Add`
// //
// Adds a header field to the HTTP response. // Adds a header field to the HTTP response.

Loading…
Cancel
Save