MCPcopy
hub / github.com/minio/minio-go / isAmzHeader

Function isAmzHeader

utils.go:555–559  ·  view source on GitHub ↗

isAmzHeader returns true if header is a x-amz-meta-* or x-amz-acl header.

(headerKey string)

Source from the content-addressed store, hash-verified

553
554// isAmzHeader returns true if header is a x-amz-meta-* or x-amz-acl header.
555func isAmzHeader(headerKey string) bool {
556 key := strings.ToLower(headerKey)
557
558 return strings.HasPrefix(key, "x-amz-meta-") || strings.HasPrefix(key, "x-amz-grant-") || key == "x-amz-acl" || isSSEHeader(headerKey) || strings.HasPrefix(key, "x-amz-checksum-")
559}
560
561// isMinioHeader returns true if header is x-minio- header.
562func isMinioHeader(headerKey string) bool {

Callers 3

TestIsAmzHeaderFunction · 0.85
MarshalMethod · 0.85
HeaderMethod · 0.85

Calls 1

isSSEHeaderFunction · 0.85

Tested by 1

TestIsAmzHeaderFunction · 0.68