Documentation
¶
Index ¶
- func ExtractHttpError(resp *http.Response) error
- func FilterStrSlice(elem string, s []string) []string
- func HumanDuration(from, to time.Time) string
- func InStrSlice(elem string, s []string) bool
- func MakeHttpTransport(skipInsecure bool) http.RoundTripper
- func MakeHttpTransportWithHeader(skipInsecure bool, key, val string) http.RoundTripper
- func Title(content string) string
- type HeaderTransport
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExtractHttpError ¶
func FilterStrSlice ¶
func HumanDuration ¶
func InStrSlice ¶
func MakeHttpTransport ¶
func MakeHttpTransport(skipInsecure bool) http.RoundTripper
func MakeHttpTransportWithHeader ¶
func MakeHttpTransportWithHeader(skipInsecure bool, key, val string) http.RoundTripper
Types ¶
type HeaderTransport ¶
type HeaderTransport struct { WrapTransport http.RoundTripper // contains filtered or unexported fields }
func NewHeaderTransport ¶
func NewHeaderTransport(transport http.RoundTripper, key, val string) *HeaderTransport
Click to show internal directories.
Click to hide internal directories.