Lines Matching defs:host
211 // We crawl HTML using overridden scheme, host, and port.
213 auto host = get_real_host();
216 std::find(std::begin(host), std::end(host), ':') != std::end(host);
223 base_uri += host;
262 // Perform special handling |host| if it is IPv6 literal and includes
264 std::string decode_host(const StringRef &host) {
265 auto zone_start = std::find(std::begin(host), std::end(host), '%');
266 if (zone_start == std::end(host) ||
268 std::string(std::begin(host), zone_start).c_str())) {
269 return host.str();
272 if (zone_start + 1 == std::end(host)) {
273 return StringRef{host.c_str(), host.size() - 1}.str();
276 if (zone_start + 3 >= std::end(host)) {
277 return host.str();
284 auto zone_id = util::percent_decode(zone_id_src, std::end(host));
285 auto res = std::string(std::begin(host), zone_start + 1);
645 int HttpClient::resolve_host(const std::string &host, uint16_t port) {
647 this->host = host;
653 rv = getaddrinfo(host.c_str(), util::utos(port).c_str(), &hints, &addrs);
695 // If the user overrode the :authority or host header, use that
698 config.host_override.empty() ? host : config.host_override;
999 auto headers = Headers{{"host", hostport},
1449 auto host =
1451 auto end = std::find(std::begin(host), std::end(host), '%');
1453 ss.write(host.c_str(), end - std::begin(host));
1688 auto host = req->get_real_host();
1701 !util::fieldeq(uri.c_str(), u, UF_HOST, host)) {
2057 // host) exist and non-empty.
2283 const std::string &scheme, const std::string &host, uint16_t port,
2385 if (client.resolve_host(host, port) != 0) {
2392 std::cerr << "[ERROR] Could not connect to " << host << ", port " << port
2629 auto host = decode_host(util::get_uri_field(uri.c_str(), u, UF_HOST));
2631 host != prev_host || port != prev_port) {
2640 prev_host = std::move(host);
3116 // Find host and port overridden by extra header fields.
3123 [](const Header &nv) { return nv.name == "host"; });
3127 // authority_it may looks like "host:port".