http_client

package
v0.4.69 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 19, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAuthHeaders

func GetAuthHeaders(token *string) map[string]string

func MergeMaps

func MergeMaps(maps ...map[string]string) map[string]string

func NewWithAuth

func NewWithAuth(token *string) *http.Client

Returns an http client that includes an auth header if the token is not empty or nil

func NewWithHeaders

func NewWithHeaders(
	headers map[string]string,
) *http.Client

Returns a new http client that will send headers along with the request

func WithAuth added in v0.4.51

func WithAuth(client *http.Client, token *string) *http.Client

func WithHeaders added in v0.4.51

func WithHeaders(
	client *http.Client,
	headers map[string]string,
) *http.Client

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL