Source File
build.go
Belonging Package
github.com/aws/aws-sdk-go/private/protocol/query
package query
import (
)
var BuildHandler = request.NamedHandler{Name: "awssdk.query.Build", Fn: Build}
func ( *request.Request) {
:= url.Values{
"Action": {.Operation.Name},
"Version": {.ClientInfo.APIVersion},
}
if := queryutil.Parse(, .Params, false); != nil {
.Error = awserr.New(request.ErrCodeSerialization, "failed encoding Query request", )
return
}
if !.IsPresigned() {
.HTTPRequest.Method = "POST"
.HTTPRequest.Header.Set("Content-Type", "application/x-www-form-urlencoded; charset=utf-8")
.SetBufferBody([]byte(.Encode()))
} else { // This is a pre-signed request
.HTTPRequest.Method = "GET"
.HTTPRequest.URL.RawQuery = .Encode()
}
![]() |
The pages are generated with Golds v0.3.2-preview. (GOOS=darwin GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |