MCPcopy
hub / github.com/docker/compose / backendURL

Function backendURL

internal/desktop/client.go:228–230  ·  view source on GitHub ↗

backendURL generates a URL for the given API path. NOTE: Custom transport handles communication. The host is to create a valid URL for the Go http.Client that is also descriptive in error/logs.

(path string)

Source from the content-addressed store, hash-verified

226// NOTE: Custom transport handles communication. The host is to create a valid
227// URL for the Go http.Client that is also descriptive in error/logs.
228func backendURL(path string) string {
229 return "http://docker-desktop/" + strings.TrimPrefix(path, "/")
230}

Callers 1

newRequestMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected