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

Method String

modules/caddyhttp/replacer.go:572–579  ·  view source on GitHub ↗

Lazy generates UUID string or return cached value if present

()

Source from the content-addressed store, hash-verified

570
571// Lazy generates UUID string or return cached value if present
572func (rid *requestID) String() string {
573 if rid.value == "" {
574 if id, err := uuid.NewRandom(); err == nil {
575 rid.value = id.String()
576 }
577 }
578 return rid.value
579}
580
581const (
582 reqCookieReplPrefix = "http.request.cookie."

Callers 1

addHTTPVarsToReplacerFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected