MCPcopy
hub / github.com/grafana/dskit / pathRewrite

Struct pathRewrite

middleware/path_rewrite.go:25–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23}
24
25type pathRewrite struct {
26 regexp *regexp.Regexp
27 replacement string
28}
29
30func (p pathRewrite) Wrap(next http.Handler) http.Handler {
31 return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected