MCPcopy Create free account
hub / github.com/apache/cloudberry / GetFieldString

Function GetFieldString

gpcontrib/gpcloud/src/s3http_headers.cpp:60–89  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

58}
59
60const char *GetFieldString(HeaderField f) {
61 switch (f) {
62 case HOST:
63 return "Host";
64 case RANGE:
65 return "Range";
66 case DATE:
67 return "Date";
68 case CONTENTLENGTH:
69 return "Content-Length";
70 case CONTENTMD5:
71 return "Content-MD5";
72 case CONTENTTYPE:
73 return "Content-Type";
74 case EXPECT:
75 return "Expect";
76 case AUTHORIZATION:
77 return "Authorization";
78 case ETAG:
79 return "ETag";
80 case X_AMZ_DATE:
81 return "x-amz-date";
82 case X_AMZ_CONTENT_SHA256:
83 return "x-amz-content-sha256";
84 case X_AMZ_SERVER_SIDE_ENCRYPTION:
85 return "x-amz-server-side-encryption";
86 default:
87 return "Unknown";
88 }
89}

Callers 2

TESTFunction · 0.85
CreateListMethod · 0.85

Calls

no outgoing calls

Tested by 1

TESTFunction · 0.68