httpauth

package
v1.0.0-beta.12.test.5 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2018 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewTripper

func NewTripper(parent http.RoundTripper, auth tokenauth.Source, headerName string) http.RoundTripper

NewTripper constructs Tripper that is able to inject any token as Bearer inside given Header name.

Types

type Tripper

type Tripper struct {
	// contains filtered or unexported fields
}

func (*Tripper) RoundTrip

func (t *Tripper) RoundTrip(req *http.Request) (*http.Response, error)

RoundTrip wraps parent RoundTrip and injects retrieved Token into specified Header.

Jump to

Keyboard shortcuts

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