MCPcopy Create free account
hub / github.com/facebook/time / WithProxy

Function WithProxy

ntrip/client.go:73–77  ·  view source on GitHub ↗

WithProxy configures the client to connect through an HTTP CONNECT proxy.

(cfg ProxyConfig)

Source from the content-addressed store, hash-verified

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

Callers 2

connectCasterFunction · 0.92

Calls

no outgoing calls

Tested by 1

Used in the wild real call sites across dependent graphs

searching dependent graphs…