()
| 165 | } |
| 166 | |
| 167 | func (wh *Webhook) String() string { |
| 168 | return fmt.Sprintf("Webhook handler [%s]", wh.SanitizedUrl(context.TODO())) // not possible to provide a better context and satisfy fmt.Stringer |
| 169 | } |
| 170 | |
| 171 | func (wh *Webhook) SanitizedUrl(ctx context.Context) string { |
| 172 | // Basic auth credentials may have been included in the URL, in which case obscure them |