WithProxy configures the client to connect through an HTTP CONNECT proxy.
(cfg ProxyConfig)
| 71 | |
| 72 | // WithProxy configures the client to connect through an HTTP CONNECT proxy. |
| 73 | func WithProxy(cfg ProxyConfig) Option { |
| 74 | return func(c *Client) { |
| 75 | c.proxy = &cfg |
| 76 | } |
| 77 | } |
| 78 | |
| 79 | // WithLogger sets the logger for the client. |
| 80 | func WithLogger(logger *slog.Logger) Option { |
no outgoing calls
searching dependent graphs…