| 608 | static inline constexpr auto kBucketRegionHeaderName = "x-amz-bucket-region"; |
| 609 | |
| 610 | std::string GetBucketRegionFromHeaders( |
| 611 | const Aws::Http::HeaderValueCollection& headers) { |
| 612 | const auto it = headers.find(ToAwsString(kBucketRegionHeaderName)); |
| 613 | if (it != headers.end()) { |
| 614 | return std::string(FromAwsString(it->second)); |
| 615 | } |
| 616 | return std::string(); |
| 617 | } |
| 618 | |
| 619 | template <typename ErrorType> |
| 620 | Result<std::string> GetBucketRegionFromError( |
nothing calls this directly
no test coverage detected