MCPcopy Create free account
hub / github.com/buggregator/server / parseRequestURI

Function parseRequestURI

modules/proxy/server.go:240–246  ·  view source on GitHub ↗

parseRequestURI extracts the path from an absolute proxy URI.

(rawURI string)

Source from the content-addressed store, hash-verified

238
239// parseRequestURI extracts the path from an absolute proxy URI.
240func parseRequestURI(rawURI string) string {
241 u, err := url.Parse(rawURI)
242 if err != nil {
243 return rawURI
244 }
245 return u.Path
246}

Callers

nothing calls this directly

Calls 1

ParseMethod · 0.80

Tested by

no test coverage detected