mirror of
https://gitea.com/Lydanne/buildx.git
synced 2025-07-10 05:27:07 +08:00
vendor: update buildkit to master@31c870e82a48
Signed-off-by: Justin Chadwell <me@jedevc.com>
This commit is contained in:
9
vendor/github.com/aws/smithy-go/transport/http/request.go
generated
vendored
9
vendor/github.com/aws/smithy-go/transport/http/request.go
generated
vendored
@ -7,6 +7,7 @@ import (
|
||||
"io/ioutil"
|
||||
"net/http"
|
||||
"net/url"
|
||||
"strings"
|
||||
|
||||
iointernal "github.com/aws/smithy-go/transport/http/internal/io"
|
||||
)
|
||||
@ -33,6 +34,14 @@ func NewStackRequest() interface{} {
|
||||
}
|
||||
}
|
||||
|
||||
// IsHTTPS returns if the request is HTTPS. Returns false if no endpoint URL is set.
|
||||
func (r *Request) IsHTTPS() bool {
|
||||
if r.URL == nil {
|
||||
return false
|
||||
}
|
||||
return strings.EqualFold(r.URL.Scheme, "https")
|
||||
}
|
||||
|
||||
// Clone returns a deep copy of the Request for the new context. A reference to
|
||||
// the Stream is copied, but the underlying stream is not copied.
|
||||
func (r *Request) Clone() *Request {
|
||||
|
Reference in New Issue
Block a user