MCPcopy Create free account
hub / github.com/ClickHouse/ClickHouse / isS3WrongSigningRegionBadRequest

Function isS3WrongSigningRegionBadRequest

src/IO/S3/PocoHTTPClient.cpp:105–112  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

103{
104
105bool isS3WrongSigningRegionBadRequest(int status_code, const Poco::Net::HTTPMessage & response)
106{
107 if (status_code != Poco::Net::HTTPResponse::HTTP_BAD_REQUEST)
108 return false;
109 if (!response.has("x-amz-bucket-region"))
110 return false;
111 return !response.get("x-amz-bucket-region").empty();
112}
113
114PocoHTTPClientConfiguration::PocoHTTPClientConfiguration(
115 std::function<ProxyConfiguration()> per_request_configuration_,

Callers 2

TESTFunction · 0.85

Calls 3

hasMethod · 0.45
emptyMethod · 0.45
getMethod · 0.45

Tested by 1

TESTFunction · 0.68