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