| 154 | bool Uri::is_file_scheme() const { return impl_->is_file_uri_; } |
| 155 | |
| 156 | std::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 | |
| 162 | bool Uri::has_host() const { return IsTextRangeSet(impl_->uri_.hostText); } |
| 163 |