| 394 | } |
| 395 | |
| 396 | void URI::SetHostAndPort(const std::string& host) { |
| 397 | const char* const host_begin = host.c_str(); |
| 398 | const char* host_end = |
| 399 | SplitHostAndPort(host_begin, host_begin + host.size(), &_port); |
| 400 | _host.assign(host_begin, host_end - host_begin); |
| 401 | } |
| 402 | |
| 403 | void URI::SetH2Path(const char* h2_path) { |
| 404 | _path.clear(); |
no test coverage detected