This commit is contained in:
a 2024-08-21 16:05:14 -05:00
parent 0d89db0cc5
commit b371ab03f9
No known key found for this signature in database
GPG key ID: 374BC539FE795AF0

View file

@ -100,7 +100,7 @@ func (g *Gizmo) Provision(ctx caddy.Context) error {
} }
``` ```
Here, we extract a replacer out of the `context.Context` inside the `*http.Request`. This replacer not only has access to global placeholders, but also http placeholders such as `{http.request.uri}` Here, we extract a replacer out of the `context.Context` inside the `*http.Request`. This replacer not only has access to global placeholders, but also http placeholders such as `{http.request.uri}`.
```go ```go
func (g *Gizmo) ServeHTTP(w http.ResponseWriter, r *http.Request, next caddyhttp.Handler) error { func (g *Gizmo) ServeHTTP(w http.ResponseWriter, r *http.Request, next caddyhttp.Handler) error {