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

Method httpTransport

pkg/remote/oci.go:105–110  ·  pkg/remote/oci.go::ociRemoteLoader.httpTransport
(ctx context.Context)

Source from the content-addressed store, hash-verified

103}
104
105func (g *ociRemoteLoader) httpTransport(ctx context.Context) http.RoundTripper {
106 g.transportOnce.Do(func() {
107 g.transport = desktop.ProxyTransportFor(ctx, g.dockerCli.Client())
108 })
109 return g.transport
110}
111
112func (g *ociRemoteLoader) Accept(path string) bool {
113 return strings.HasPrefix(path, OciPrefix)

Callers 1

LoadMethod · 0.95

Calls 2

ProxyTransportForFunction · 0.92
ClientMethod · 0.45

Tested by

no test coverage detected