MCPcopy Index your code
hub / github.com/coder/coder / WithHTTPClient

Function WithHTTPClient

coderd/webpush/webpush.go:94–98  ·  view source on GitHub ↗

WithHTTPClient overrides the default SSRF-safe HTTP client used to deliver push notifications. This is intended for tests that need to deliver to localhost test servers.

(client *http.Client)

Source from the content-addressed store, hash-verified

92// push notifications. This is intended for tests that need to deliver to
93// localhost test servers.
94func WithHTTPClient(client *http.Client) Option {
95 return func(o *options) {
96 o.httpClient = client
97 }
98}
99
100// New creates a new Dispatcher to dispatch web push notifications.
101//

Callers 1

setupPushTestWithOptionsFunction · 0.92

Calls

no outgoing calls

Tested by 1

setupPushTestWithOptionsFunction · 0.74