Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Option ¶
type Option interface {
Apply(*Transport)
}
func WithLogger ¶
WithLogger sets a logger options to the transport layer.
func WithTLSClientConfig ¶
WithTLSClientConfig returns an Option that sets the TLS client configuration. `tlsConfig` is a structure that is used to configure a TLS client or server.
func WithUserAgent ¶
WithUserAgent sets a user agent option to the transport layer.
type Transport ¶
type Transport struct {
// contains filtered or unexported fields
}
func NewTransport ¶
NewTransport creates a new Transport, applies the options, and then cycles the transport.
Click to show internal directories.
Click to hide internal directories.