Description

NewClientTLSFromCert constructs a TLS from the input certificate for client. serverNameOverwrite is for testing only. If set to a non empty string, it will overwrite the virtual host name of authority (e.g. :authority header field) in requests.