MCPcopy Create free account
hub / github.com/cloudfoundry/cli / urlFrom

Method urlFrom

api/uaa/internal/routing.go:154–161  ·  view source on GitHub ↗
(resource string, uri string)

Source from the content-addressed store, hash-verified

152}
153
154func (Router) urlFrom(resource string, uri string) (string, error) {
155 u, err := url.Parse(resource)
156 if err != nil {
157 return "", err
158 }
159 u.Path = path.Join(u.Path, uri)
160 return u.String(), nil
161}

Callers 1

CreateRequestMethod · 0.95

Calls 2

ParseMethod · 0.65
StringMethod · 0.65

Tested by

no test coverage detected