Source File
protocol.go
Belonging Package
github.com/aws/aws-sdk-go/private/protocol
package protocol
import (
)
type RequireHTTPMinProtocol struct {
Major, Minor int
}
func ( RequireHTTPMinProtocol) ( *request.Request) {
if .Error != nil || .HTTPResponse == nil {
return
}
if !strings.HasPrefix(.HTTPResponse.Proto, "HTTP") {
.Error = newMinHTTPProtoError(.Major, .Minor, )
}
if .HTTPResponse.ProtoMajor < .Major || .HTTPResponse.ProtoMinor < .Minor {
.Error = newMinHTTPProtoError(.Major, .Minor, )
}
}
const ErrCodeMinimumHTTPProtocolError = "MinimumHTTPProtocolError"
func (, int, *request.Request) error {
return awserr.NewRequestFailure(
awserr.New("MinimumHTTPProtocolError",
fmt.Sprintf(
"operation requires minimum HTTP protocol of HTTP/%d.%d, but was %s",
, , .HTTPResponse.Proto,
),
nil,
),
.HTTPResponse.StatusCode, .RequestID,
)
![]() |
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. |