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

Method SetHeader

encoding/httpbinding/encode.go:86–88  ·  view source on GitHub ↗

SetHeader returns a HeaderValue for setting the given header name

(key string)

Source from the content-addressed store, hash-verified

84
85// SetHeader returns a HeaderValue for setting the given header name
86func (e *Encoder) SetHeader(key string) HeaderValue {
87 return newHeaderValue(e.header, key, false)
88}
89
90// Headers returns a Header used for encoding headers with the given prefix
91func (e *Encoder) Headers(prefix string) Headers {

Callers 1

TestEncodeContentLengthFunction · 0.95

Calls 1

newHeaderValueFunction · 0.85

Tested by 1

TestEncodeContentLengthFunction · 0.76