Documentation
¶
Overview ¶
Package http provides HTTP client implementations.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TokenClient ¶
type TokenClient struct {
// contains filtered or unexported fields
}
A TokenClient wraps an HTTP client to automatically set Authorization headers in requests using the provided function to generate tokens.
func NewTokenClient ¶
func NewTokenClient(c Client, tf func() string) *TokenClient
NewTokenClient returns a TokenClient given a client and token-generating funtion.
Click to show internal directories.
Click to hide internal directories.