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

Method getHostForCurl

gpcontrib/gpcloud/src/s3url.cpp:48–58  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46}
47
48string S3Url::getHostForCurl() const {
49 if (version != "1") {
50 if (port.empty()) {
51 return host;
52 } else {
53 return host + ":" + port;
54 }
55 } else {
56 return "s3-" + region + ".amazonaws.com";
57 }
58}
59
60string S3Url::getPathForCurl() const {
61 stringstream pathSs;

Callers 10

getFullUrlForCurlMethod · 0.95
TESTFunction · 0.80
getBucketResponseMethod · 0.80
fetchDataMethod · 0.80
checkCompressionTypeMethod · 0.80
checkKeyExistenceMethod · 0.80
getUploadIdMethod · 0.80
uploadPartOfDataMethod · 0.80
completeMultiPartMethod · 0.80
abortUploadMethod · 0.80

Calls

no outgoing calls

Tested by 1

TESTFunction · 0.64