MCPcopy Create free account
hub / github.com/aws/smithy-go / HasHeader

Method HasHeader

encoding/httpbinding/encode.go:100–102  ·  view source on GitHub ↗

HasHeader returns if a header with the key specified exists with one or more value.

(key string)

Source from the content-addressed store, hash-verified

98// HasHeader returns if a header with the key specified exists with one or
99// more value.
100func (e Encoder) HasHeader(key string) bool {
101 return len(e.header[key]) != 0
102}
103
104// SetURI returns a URIValue used for setting the given path key
105func (e *Encoder) SetURI(key string) URIValue {

Callers 1

TestEncoderHasHeaderFunction · 0.95

Calls

no outgoing calls

Tested by 1

TestEncoderHasHeaderFunction · 0.76