Lines Matching defs:host
118 int split_host_port(char *host, size_t hostlen, uint16_t *port_ptr,
120 // host and port in |hostport| is separated by single ','.
123 LOG(ERROR) << opt << ": Invalid host, port: " << hostport;
131 std::copy(std::begin(hostport), sep, host);
132 host[len] = '\0';
457 altsvc.host = make_string_ref(config->balloc, tokens[2]);
745 if (util::streq_l("host", StringRef{var_name + str_size("http_"),
747 // Special handling of host header field. We will use
748 // :authority header field if host header is missing. This
1171 // Parses host-path mapping patterns in |src_pattern|, and stores
1172 // mappings in config. We will store each host-path pattern found in
1362 auto host = StringRef{std::begin(g.pattern) + 1, path_first};
1373 [&host](const WildcardPattern &wp) { return wp.host == host; });
1376 wildcard_patterns.emplace_back(host);
1381 auto iov = make_byte_ref(downstreamconf.balloc, host.size() + 1);
1383 p = std::reverse_copy(std::begin(host), std::end(host), p);
1997 if (util::strieq_l("host-rewrit", name, 11)) {
2105 if (util::strieq_l("no-host-rewrit", name, 14)) {
2822 char host[NI_MAXHOST];
2833 addr.host =
2837 if (split_host_port(host, sizeof(host), &port,
2842 addr.host = make_string_ref(downstreamconf.balloc, StringRef{host});
2916 addr.host = make_string_ref(config->balloc, StringRef{path, addr_end});
2925 if (split_host_port(host, sizeof(host), &port,
2930 addr.host = make_string_ref(config->balloc, StringRef{host});
2933 if (util::numeric_host(host, AF_INET)) {
2940 if (util::numeric_host(host, AF_INET6)) {
3300 proxy.host = make_string_ref(
3434 << ": deprecated. :authority and host header fields are NOT "
3436 "--host-rewrite option.";
3441 << ": deprecated. Use backend-connections-per-host instead.";
3592 if (split_host_port(host, sizeof(host), &port,
3600 memcachedconf.host = make_string_ref(config->balloc, StringRef{host});
3607 memcachedconf.host = make_string_ref(config->balloc, StringRef{host});
3674 if (util::strieq_l("host", param)) {
4429 addr.host = StringRef::from_lit(DEFAULT_DOWNSTREAM_HOST);
4466 LOG(INFO) << "group " << i << " -> " << addr.host.c_str()
4528 // for AF_UNIX socket, we use "localhost" as host for backend
4533 auto path = addr.host.c_str();
4534 auto pathlen = addr.host.size();
4556 util::make_http_hostport(downstreamconf.balloc, addr.host, addr.port);
4559 util::make_hostport(std::begin(hostport_buf), addr.host, addr.port);
4562 if (resolve_hostname(&addr.addr, addr.host.c_str(), addr.port,
4595 key = addr.host;
4666 char host[NI_MAXHOST];
4667 rv = getnameinfo(res->ai_addr, res->ai_addrlen, host, sizeof(host), nullptr,
4678 << " succeeded: " << host;