MCPcopy
hub / github.com/yusing/godoxy / TryGetUpstreamName

Function TryGetUpstreamName

internal/route/routes/context.go:59–64  ·  view source on GitHub ↗
(r *http.Request)

Source from the content-addressed store, hash-verified

57}
58
59func TryGetUpstreamName(r *http.Request) string {
60 if route := TryGetRoute(r); route != nil {
61 return route.Name()
62 }
63 return ""
64}
65
66func TryGetUpstreamScheme(r *http.Request) string {
67 if u := tryGetURL(r); u != nil {

Calls 2

TryGetRouteFunction · 0.85
NameMethod · 0.65