roundtrippers

package
v0.0.0-...-28b5f68 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewBearerToken

func NewBearerToken(token string, rt http.RoundTripper) http.RoundTripper

NewBearerToken returns an http.RoundTripper that adds the bearer token to a request's header

func NewBearerTokenFile

func NewBearerTokenFile(tokenFile string, rt http.RoundTripper) http.RoundTripper

NewBearerTokenFile returns an http.RoundTripper that adds the bearer token from a file to a request's header

Types

This section is empty.

Jump to

Keyboard shortcuts

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