Source File
middleware_metadata.go
Belonging Package
github.com/aws/smithy-go/transport/http
package http
import (
)
type (
hostnameImmutableKey struct{}
hostPrefixDisableKey struct{}
)
// GetHostnameImmutable retrieves whether the endpoint hostname should be considered
// immutable or not.
//
// Scoped to stack values. Use middleware#ClearStackValues to clear all stack
// values.
func ( context.Context) ( bool) {
, _ = middleware.GetStackValue(, hostnameImmutableKey{}).(bool)
return
}
// SetHostnameImmutable sets or modifies whether the request's endpoint hostname
// should be considered immutable or not.
//
// Scoped to stack values. Use middleware#ClearStackValues to clear all stack
// values.
func ( context.Context, bool) context.Context {
return middleware.WithStackValue(, hostnameImmutableKey{}, )
}
// IsEndpointHostPrefixDisabled retrieves whether the hostname prefixing is
// disabled.
//
// Scoped to stack values. Use middleware#ClearStackValues to clear all stack
// values.
func ( context.Context) ( bool) {
, _ = middleware.GetStackValue(, hostPrefixDisableKey{}).(bool)
return
}
// DisableEndpointHostPrefix sets or modifies whether the request's endpoint host
// prefixing should be disabled. If value is true, endpoint host prefixing
// will be disabled.
//
// Scoped to stack values. Use middleware#ClearStackValues to clear all stack
// values.
func ( context.Context, bool) context.Context {
return middleware.WithStackValue(, hostPrefixDisableKey{}, )
}
The pages are generated with Golds v0.4.9. (GOOS=linux GOARCH=amd64)