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

Function isAmzHeader

utils.go:556–560  ·  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

554
555// isAmzHeader returns true if header is a x-amz-meta-* or x-amz-acl header.
556func isAmzHeader(headerKey string) bool {
557 key := strings.ToLower(headerKey)
558
559 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-")
560}
561
562// isMinioHeader returns true if header is x-minio- header.
563func 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