mirror of
https://gitea.com/Lydanne/buildx.git
synced 2025-07-09 21:17:09 +08:00
vendor: github.com/aws/aws-sdk-go-v2/config v1.26.6
vendor github.com/aws/aws-sdk-go-v2/config v1.26.6 and related dependencies. Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
13
vendor/github.com/aws/smithy-go/encoding/httpbinding/encode.go
generated
vendored
13
vendor/github.com/aws/smithy-go/encoding/httpbinding/encode.go
generated
vendored
@ -26,10 +26,17 @@ type Encoder struct {
|
||||
header http.Header
|
||||
}
|
||||
|
||||
// NewEncoder creates a new encoder from the passed in request. All query and
|
||||
// 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
|
||||
func NewEncoder(path, query string, headers http.Header) (*Encoder, error) {
|
||||
return NewEncoderWithRawPath(path, path, query, headers)
|
||||
}
|
||||
|
||||
// NewHTTPBindingEncoder 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.
|
||||
func NewEncoder(path, query string, headers http.Header) (*Encoder, error) {
|
||||
func NewEncoderWithRawPath(path, rawPath, query string, headers http.Header) (*Encoder, error) {
|
||||
parseQuery, err := url.ParseQuery(query)
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("failed to parse query string: %w", err)
|
||||
@ -37,7 +44,7 @@ func NewEncoder(path, query string, headers http.Header) (*Encoder, error) {
|
||||
|
||||
e := &Encoder{
|
||||
path: []byte(path),
|
||||
rawPath: []byte(path),
|
||||
rawPath: []byte(rawPath),
|
||||
query: parseQuery,
|
||||
header: headers.Clone(),
|
||||
}
|
||||
|
Reference in New Issue
Block a user