WithTimeout sets an overall client Timeout (covers the entire exchange including reading the body). Do NOT use this for streaming endpoints; prefer a per-request context deadline there. Equivalent to NewWithTimeout.
(d time.Duration)
| 133 | // including reading the body). Do NOT use this for streaming endpoints; prefer |
| 134 | // a per-request context deadline there. Equivalent to NewWithTimeout. |
| 135 | func WithTimeout(d time.Duration) Option { return func(o *options) { o.timeout = d } } |
| 136 | |
| 137 | // WithTransport supplies a custom RoundTripper (e.g. an IP-pinned dialer or a |
| 138 | // credential-injecting wrapper). The caller is responsible for the transport's |
no outgoing calls
no test coverage detected