Documentation ¶
Index ¶
- func GetAuthHeaders(token *string) map[string]string
- func MergeMaps(maps ...map[string]string) map[string]string
- func NewWithAuth(token *string) *http.Client
- func NewWithHeaders(headers map[string]string) *http.Client
- func WithAuth(client *http.Client, token *string) *http.Client
- func WithHeaders(client *http.Client, headers map[string]string) *http.Client
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAuthHeaders ¶
func NewWithAuth ¶
Returns an http client that includes an auth header if the token is not empty or nil
func NewWithHeaders ¶
Returns a new http client that will send headers along with the request
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.