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)
| 67 | // [httpclient.DefaultToolHTTPTimeout]) used both for fetching the spec |
| 68 | // and for the generated tools' HTTP calls. |
| 69 | func 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 |
no outgoing calls