From e2fa84cddce9060497ba5198a2d6b7637ee14442 Mon Sep 17 00:00:00 2001 From: a Date: Wed, 21 Aug 2024 16:52:16 -0500 Subject: [PATCH] noot --- src/docs/markdown/extending-caddy/placeholders.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/docs/markdown/extending-caddy/placeholders.md b/src/docs/markdown/extending-caddy/placeholders.md index 3e12304..793e9b7 100644 --- a/src/docs/markdown/extending-caddy/placeholders.md +++ b/src/docs/markdown/extending-caddy/placeholders.md @@ -89,8 +89,7 @@ You should not process placeholders when ummarshaling your Caddyfile. Instead, u ### Examples - -In this example, we are using a newly constructed replacer to process placeholders. It only has access to global placeholders such as `{env.HOST}`. +In this example, we are using a newly constructed replacer to process placeholders. It has access to [global placeholders](/docs/conventions#placeholders) such as `{env.HOST}`, but NOT request placeholder such as `{http.request.uri}` ```go func (g *Gizmo) Provision(ctx caddy.Context) error { @@ -100,7 +99,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 request placeholders such as `{http.request.uri}`. ```go func (g *Gizmo) ServeHTTP(w http.ResponseWriter, r *http.Request, next caddyhttp.Handler) error {