Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TLSDialer ¶
TLSDialer is a function for creating TLS connections for non-proxied requests that can be assigned to a http.Transport's DialTLS field.
func WithPinnedCertVerification ¶
WithPinnedCertVerification returns a TLS dialer function which checks that the remote server provides a certificate whose SHA256 fingerprint matches the provided value.
The returned dialer function can be plugged into a http.Transport's DialTLS field to implement certificate pinning.
Click to show internal directories.
Click to hide internal directories.