TLSConfigOption defines an option that can be applied to the HTTP client.
| 1251 | |
| 1252 | // TLSConfigOption defines an option that can be applied to the HTTP client. |
| 1253 | type TLSConfigOption interface { |
| 1254 | applyToTLSConfigOptions(options *tlsConfigOptions) |
| 1255 | } |
| 1256 | |
| 1257 | // NewTLSConfig creates a new tls.Config from the given TLSConfig. |
| 1258 | func NewTLSConfig(cfg *TLSConfig, optFuncs ...TLSConfigOption) (*tls.Config, error) { |
no outgoing calls
no test coverage detected