MCPcopy Index your code
hub / github.com/cloudfoundry/cli / urlFrom

Method urlFrom

api/cloudcontroller/ccv3/internal/routing.go:139–146  ·  view source on GitHub ↗
(resource string, uri string)

Source from the content-addressed store, hash-verified

137}
138
139func (Router) urlFrom(resource string, uri string) (string, error) {
140 u, err := url.Parse(resource)
141 if err != nil {
142 return "", err
143 }
144 u.Path = path.Join(u.Path, uri)
145 return u.String(), nil
146}

Callers 1

CreateRequestMethod · 0.95

Calls 2

ParseMethod · 0.65
StringMethod · 0.65

Tested by

no test coverage detected