Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CustomUserAgentTransport ¶
type CustomUserAgentTransport struct {
http.RoundTripper
// contains filtered or unexported fields
}
CustomUserAgentTransport is a http.RoundTripper that ensures that a custom user-agent string is set for each request
func NewCustomUserAgentTransport ¶
func NewCustomUserAgentTransport(baseTransport http.RoundTripper, userAgent string) *CustomUserAgentTransport
NewCustomUserAgentTransport creates a new http transport that sets a custom user-agent string for each request
Click to show internal directories.
Click to hide internal directories.