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

Function escapePathPreservingSlashes

modules/caddyhttp/rewrite/rewrite.go:328–330  ·  view source on GitHub ↗
(path string)

Source from the content-addressed store, hash-verified

326}
327
328func escapePathPreservingSlashes(path string) string {
329 return strings.ReplaceAll(url.PathEscape(path), "%2F", "/")
330}
331
332// buildQueryString takes an input query string and
333// performs replacements on each component, returning

Callers 1

escapePathPlaceholdersFunction · 0.85

Calls 1

ReplaceAllMethod · 0.80

Tested by

no test coverage detected