| 668 | static inline constexpr auto kBucketRegionHeaderName = "x-amz-bucket-region"; |
| 669 | |
| 670 | std::string GetBucketRegionFromHeaders( |
| 671 | const Aws::Http::HeaderValueCollection& headers) { |
| 672 | const auto it = headers.find(ToAwsString(kBucketRegionHeaderName)); |
| 673 | if (it != headers.end()) { |
| 674 | return std::string(FromAwsString(it->second)); |
| 675 | } |
| 676 | return std::string(); |
| 677 | } |
| 678 | |
| 679 | template <typename ErrorType> |
| 680 | Result<std::string> GetBucketRegionFromError( |
nothing calls this directly
no test coverage detected