Replace http.Client transport layer with registry so all requests get recorded.
(client *http.Client, reg *Registry)
| 12 | // Replace http.Client transport layer with registry so all requests get |
| 13 | // recorded. |
| 14 | func ReplaceTripper(client *http.Client, reg *Registry) { |
| 15 | client.Transport = reg |
| 16 | } |
| 17 | |
| 18 | type Registry struct { |
| 19 | mu sync.Mutex |
no outgoing calls