MCPcopy Create free account
hub / github.com/SignTools/SignTools / JoinUrlsParsed

Function JoinUrlsParsed

src/util/util.go:37–43  ·  view source on GitHub ↗
(parsedBase *url.URL, relativeUrl ...string)

Source from the content-addressed store, hash-verified

35}
36
37func JoinUrlsParsed(parsedBase *url.URL, relativeUrl ...string) (string, error) {
38 parsedRelative, err := url.Parse(path.Join(relativeUrl...))
39 if err != nil {
40 return "", err
41 }
42 return parsedBase.ResolveReference(parsedRelative).String(), nil
43}
44
45func Check2xxCode(code int) error {
46 if code < 200 || code > 299 {

Callers 1

JoinUrlsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected