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

Function NewEncoder

encoding/httpbinding/encode.go:32–34  ·  view source on GitHub ↗

NewEncoder creates a new encoder from the passed in request. It assumes that raw path contains no valuable information at this point, so it passes in path as path and raw path for subsequent trans

(path, query string, headers http.Header)

Source from the content-addressed store, hash-verified

30// raw path contains no valuable information at this point, so it passes in path
31// as path and raw path for subsequent trans
32func NewEncoder(path, query string, headers http.Header) (*Encoder, error) {
33 return NewEncoderWithRawPath(path, path, query, headers)
34}
35
36// NewHTTPBindingEncoder creates a new encoder from the passed in request. All query and
37// header values will be added on top of the request's existing values. Overwriting

Callers 4

TestEncoderFunction · 0.70
TestEncoderHasHeaderFunction · 0.70
TestEncoderHasQueryFunction · 0.70
TestEncodeContentLengthFunction · 0.70

Calls 1

NewEncoderWithRawPathFunction · 0.85

Tested by 4

TestEncoderFunction · 0.56
TestEncoderHasHeaderFunction · 0.56
TestEncoderHasQueryFunction · 0.56
TestEncodeContentLengthFunction · 0.56