Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CanonicalizeHeaderKey ¶
CanonicalizeHeaderKey canonicalizes the given header key for storage into the Headers map.
Types ¶
type Headers ¶
type Headers struct {
// contains filtered or unexported fields
}
Headers provides the implementation of both, yarpc.Headers and transport.Headers.
Keys in the map are canonicalized using CanonicalizeHeaderKey.
func NewHeadersWithCapacity ¶
NewHeadersWithCapacity allocates a new Headers object. capacity specifies the initial capacity of the headers map. A capacity of zero or less is ignored.
func (Headers) Items ¶
Items returns the underlying map for this Headers object. The returned map MUST NOT be mutated. Doing so will result in undefined behavior.
This ALWAYS returns a non-nil result.
Click to show internal directories.
Click to hide internal directories.