Wrap adds a transport middleware function that will give the caller an opportunity to wrap the underlying http.RoundTripper prior to the first API call being made. The provided function is invoked after any existing transport wrappers are invoked.
(fn transport.WrapperFunc)
| 114 | // first API call being made. The provided function is invoked after any |
| 115 | // existing transport wrappers are invoked. |
| 116 | func (c *Config) Wrap(fn transport.WrapperFunc) { |
| 117 | c.WrapTransport = transport.Wrappers(c.WrapTransport, fn) |
| 118 | } |
no test coverage detected