MCPcopy
hub / github.com/docker/docker-agent / WithTimeout

Function WithTimeout

pkg/tools/builtin/openapi/openapi.go:69–71  ·  view source on GitHub ↗

WithTimeout overrides the default HTTP client timeout (see [httpclient.DefaultToolHTTPTimeout]) used both for fetching the spec and for the generated tools' HTTP calls.

(d time.Duration)

Source from the content-addressed store, hash-verified

67// [httpclient.DefaultToolHTTPTimeout]) used both for fetching the spec
68// and for the generated tools' HTTP calls.
69func WithTimeout(d time.Duration) Option {
70 return func(t *ToolSet) { t.timeout = d }
71}
72
73// WithAllowPrivateIPs disables SSRF dial-time protection on both the spec
74// fetch and the generated tools' HTTP calls. Operators opt in via

Callers 2

CreateToolSetFunction · 0.70

Calls

no outgoing calls

Tested by 1