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