MCPcopy Create free account
hub / github.com/imgproxy/imgproxy / URLPath

Function URLPath

env/types.go:120–126  ·  view source on GitHub ↗

URLPath defines URL path env var descriptor. Normalizes the path by removing query strings, fragments, and ensuring proper slashes.

(name string)

Source from the content-addressed store, hash-verified

118// URLPath defines URL path env var descriptor.
119// Normalizes the path by removing query strings, fragments, and ensuring proper slashes.
120func URLPath(name string) StringVar {
121 return StringVar{
122 Name: name,
123 format: "URL path",
124 parseFn: parseURLPath,
125 }
126}
127
128// ImageTypes defines image types slice env var descriptor.
129// Parses a comma-separated list of image format names.

Callers 1

TestURLPathFunction · 0.92

Calls

no outgoing calls

Tested by 1

TestURLPathFunction · 0.74