MCPcopy Index your code
hub / github.com/coder/coder / uriFromURL

Function uriFromURL

coderd/httpmw/oauth2.go:419–426  ·  view source on GitHub ↗
(u string)

Source from the content-addressed store, hash-verified

417}
418
419func uriFromURL(u string) string {
420 uri, err := url.Parse(u)
421 if err != nil {
422 return "/"
423 }
424
425 return uri.RequestURI()
426}

Callers 1

ExtractOAuth2Function · 0.70

Calls 1

ParseMethod · 0.65

Tested by

no test coverage detected