| 762 | } |
| 763 | |
| 764 | arrow::Result<Location> Location::ForScheme(const std::string& scheme, |
| 765 | const std::string& host, const int port) { |
| 766 | std::stringstream uri_string; |
| 767 | uri_string << scheme << "://" << host << ':' << port; |
| 768 | return Location::Parse(uri_string.str()); |
| 769 | } |
| 770 | |
| 771 | std::string Location::scheme() const { |
| 772 | std::string scheme = uri_->scheme(); |