Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
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
419
func
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
ExtractOAuth2
Function · 0.70
Calls
1
Parse
Method · 0.65
Tested by
no test coverage detected