MCPcopy
hub / github.com/caddyserver/caddy / String

Method String

modules/caddyhttp/routes.go:117–128  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

115}
116
117func (r Route) String() string {
118 var handlersRaw strings.Builder
119 handlersRaw.WriteByte('[')
120 for _, hr := range r.HandlersRaw {
121 handlersRaw.WriteByte(' ')
122 handlersRaw.WriteString(string(hr))
123 }
124 handlersRaw.WriteByte(']')
125
126 return fmt.Sprintf(`{Group:"%s" MatcherSetsRaw:%s HandlersRaw:%s Terminal:%t}`,
127 r.Group, r.MatcherSetsRaw, handlersRaw.String(), r.Terminal)
128}
129
130// Provision sets up both the matchers and handlers in the route.
131func (r *Route) Provision(ctx caddy.Context, metrics *Metrics) error {

Callers 15

ProvisionMethod · 0.45
ReadMethod · 0.45
ServeHTTPMethod · 0.45
serveHTTPMethod · 0.45
logRequestMethod · 0.45
determineTrustedProxyFunction · 0.45
trustedRealClientIPFunction · 0.45
strictUntrustedClientIpFunction · 0.45
MatchWithErrorMethod · 0.45
MatchWithErrorMethod · 0.45
errLogValuesFunction · 0.45
TestServer_LogRequestFunction · 0.45

Calls

no outgoing calls