Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var None = Header{}
None is a fixed value for a missing or blank header that implies no credentials.
Functions ¶
Types ¶
type Header ¶
type Header struct {
// contains filtered or unexported fields
}
Header wraps the raw string from the HTTP Authorization header.
func FromContext ¶
FromContext fetches the authorization Header value stored on this context (if any). If there is no header on this context, you'll simply get back a zero-value header.
func New ¶
New creates a Header based on the HTTP Authorization header value that can be used for RPC authorization.
Click to show internal directories.
Click to hide internal directories.