NewClient creates a new HTTP client with the given configuration.
( config config.HTTPClientConfiguration, logger log.Logger, )
| 10 | |
| 11 | // NewClient creates a new HTTP client with the given configuration. |
| 12 | func NewClient( |
| 13 | config config.HTTPClientConfiguration, |
| 14 | logger log.Logger, |
| 15 | ) (Client, error) { |
| 16 | return NewClientWithHeaders(config, logger, nil, false) |
| 17 | } |
| 18 | |
| 19 | // NewClientWithHeaders creates a new HTTP client with added extra headers. |
| 20 | func NewClientWithHeaders( |
no test coverage detected