package httpbinding

Import Path
	github.com/aws/smithy-go/encoding/httpbinding (on go.dev)

Dependency Relation
	imports 9 packages, and imported by 4 packages


Package-Level Type Names (total 5, all are exported)
/* sort exporteds by: | */
An Encoder provides encoding of REST URI path, query, and header components of an HTTP request. Can also encode a stream as the payload. Does not support SetFields. AddHeader returns a HeaderValue for appending to the given header name AddQuery returns a QueryValue used for appending the given query key Encode returns a REST protocol encoder for encoding HTTP bindings. Due net/http requiring `Content-Length` to be specified on the http.Request#ContentLength directly. Encode will look for whether the header is present, and if so will remove it and set the respective value on http.Request. Returns any error occurring during encoding. HasHeader returns if a header with the key specified exists with one or more value. HasQuery returns if a query with the key specified exists with one or more values. Headers returns a Header used for encoding headers with the given prefix SetHeader returns a HeaderValue for setting the given header name SetQuery returns a QueryValue used for setting the given query key SetURI returns a URIValue used for setting the given path key func NewEncoder(path, query string, headers http.Header) (*Encoder, error)
Headers is used to encode header keys using a provided prefix AddHeader returns a HeaderValue used to append values to prefix+key SetHeader returns a HeaderValue used to set the value of prefix+key func (*Encoder).Headers(prefix string) Headers
HeaderValue is used to encode values to an HTTP header BigDecimal encodes the value v as a query string value BigInteger encodes the value v as a query string value Blob encodes the value v as a base64 header string value Boolean encodes the value v as a query string value Byte encodes the value v as a query string value Double encodes the value v as a query string value Float encodes the value v as a query string value Integer encodes the value v as the header string value Long encodes the value v as the header string value Short encodes the value v as a query string value String encodes the value v as the header string value func (*Encoder).AddHeader(key string) HeaderValue func (*Encoder).SetHeader(key string) HeaderValue func Headers.AddHeader(key string) HeaderValue func Headers.SetHeader(key string) HeaderValue
QueryValue is used to encode query key values BigDecimal encodes v as a query string value BigInteger encodes v as a query string value Blob encodes v as a base64 query string value Boolean encodes v as a query string value Byte encodes v as a query string value Double encodes v as a query string value Float encodes v as a query string value Integer encodes v as a query string value Long encodes v as a query string value Short encodes v as a query string value String encodes v as a query string value func NewQueryValue(query url.Values, key string, append bool) QueryValue func (*Encoder).AddQuery(key string) QueryValue func (*Encoder).SetQuery(key string) QueryValue
URIValue is used to encode named URI parameters BigDecimal encodes v as a query string value BigInteger encodes v as a query string value Boolean encodes v as a URI string value Byte encodes v as a URI string value Double encodes v as a query string value Float encodes v as a query string value Integer encodes v as a URI string value Long encodes v as a URI string value Short encodes v as a URI string value String encodes v as a URI string value func (*Encoder).SetURI(key string) URIValue
Package-Level Functions (total 9, in which 4 are exported)
EscapePath escapes part of a URL path in Amazon style.
NewEncoder creates a new encoder from the passed in request. All query and header values will be added on top of the request's existing values. Overwriting duplicate values.
NewQueryValue creates a new QueryValue which enables encoding a query value into the given url.Values.
SplitURI parses a Smithy HTTP binding trait URI
Package-Level Variables (only one, which is unexported)
Package-Level Constants (total 7, none are exported)