Lines Matching defs:port
203 return config.host_override.empty() ? util::has_uri_field(u, UF_PORT) ? u.port
211 // We crawl HTML using overridden scheme, host, and port.
214 auto port = get_real_port();
227 if (!((scheme == "https" && port == 443) ||
228 (scheme == "http" && port == 80))) {
230 base_uri += util::utos(port);
645 int HttpClient::resolve_host(const std::string &host, uint16_t port) {
653 rv = getaddrinfo(host.c_str(), util::utos(port).c_str(), &hints, &addrs);
1459 reqvec[0]->u.port !=
1461 ss << ":" << reqvec[0]->u.port;
1689 auto port = req->get_real_port();
1705 auto link_port = util::has_uri_field(u, UF_PORT) ? u.port
1709 if (port != link_port) {
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
2626 auto port = util::has_uri_field(u, UF_PORT)
2627 ? u.port
2631 host != prev_host || port != prev_port) {
2641 prev_port = port;
3116 // Find host and port overridden by extra header fields.
3127 // authority_it may looks like "host:port".
3139 config.port_override = u.port;