Documentation ¶
Overview ¶
Package transport contains HTTP transport utilities for Crossplane.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultUserAgent = fmt.Sprintf("%s/%s", "crossplane", version.New().GetVersionString())
DefaultUserAgent is the default User-Agent header that is set when making HTTP requests for packages.
Functions ¶
This section is empty.
Types ¶
type UserAgent ¶
type UserAgent struct {
// contains filtered or unexported fields
}
UserAgent wraps a RoundTripper and injects a user agent header.
func NewUserAgent ¶
func NewUserAgent(rt http.RoundTripper, userAgent string) *UserAgent
NewUserAgent constructs a new UserAgent transport.
Click to show internal directories.
Click to hide internal directories.