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)
| 92 | // push notifications. This is intended for tests that need to deliver to |
| 93 | // localhost test servers. |
| 94 | func 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 | // |
no outgoing calls