MCPcopy Create free account
hub / github.com/apache/arrow / host

Method host

cpp/src/arrow/util/uri.cc:156–160  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

154bool Uri::is_file_scheme() const { return impl_->is_file_uri_; }
155
156std::string Uri::host() const {
157 // XXX for now we're assuming that %-encoding is expected, but this could be
158 // scheme-dependent (for example, http(s) may expect IDNA instead?)
159 return UriUnescape(TextRangeToView(impl_->uri_.hostText));
160}
161
162bool Uri::has_host() const { return IsTextRangeSet(impl_->uri_.hostText); }
163

Callers 11

InitMethod · 0.80
InitMethod · 0.80
FromUriMethod · 0.80
FromUriMethod · 0.80
FromUriAndOptionsMethod · 0.80
FromUriMethod · 0.80
PathFromUriHelperFunction · 0.80
FromUriMethod · 0.80
TESTFunction · 0.80
start_httpMethod · 0.80

Calls 2

UriUnescapeFunction · 0.85
TextRangeToViewFunction · 0.85

Tested by 1

TESTFunction · 0.64