headers

package
v0.20.0-dd Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetAuthHeader

func SetAuthHeader(token *auth.Token, req *http.Request)

SetAuthHeader uses the provided token to set the Authorization and trust boundary headers on a request. If the token.Type is empty, the type is assumed to be Bearer.

func SetAuthMetadata

func SetAuthMetadata(token *auth.Token, m map[string]string)

SetAuthMetadata uses the provided token to set the Authorization and trust boundary metadata. If the token.Type is empty, the type is assumed to be Bearer.

Types

This section is empty.

Jump to

Keyboard shortcuts

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