roundtrippers

package
v10.1.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2019 License: Apache-2.0 Imports: 1 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthorizingRoundTripper

type AuthorizingRoundTripper struct {
	http.RoundTripper
	Token string
}

AuthorizingRoundTripper acts as a normal RoundTripper, but with a bearer token

func (AuthorizingRoundTripper) RoundTrip

func (rt AuthorizingRoundTripper) RoundTrip(req *http.Request) (*http.Response, error)

Jump to

Keyboard shortcuts

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