package headers
import "cloud.google.com/go/auth/internal/transport/headers"
Index ¶
- func SetAuthHeader(token *auth.Token, req *http.Request)
- func SetAuthMetadata(token *auth.Token, m map[string]string)
Functions ¶
func SetAuthHeader ¶
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 ¶
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.
Source Files ¶
headers.go
- Version
- v0.17.0
- Published
- Oct 2, 2025
- Platform
- darwin/amd64
- Imports
- 3 packages
- Last checked
- 25 minutes ago –
Tools for package owners.