Lines Matching defs:host
729 // Returns true if |host| is IPv6 numeric address (e.g., ::1)
730 bool ipv6_numeric_addr(const char *host);
784 StringRef make_hostport(BlockAllocator &balloc, const StringRef &host,
788 StringRef make_hostport(OutputIt first, const StringRef &host, uint16_t port) {
789 auto ipv6 = ipv6_numeric_addr(host.c_str());
797 p = std::copy(std::begin(host), std::end(host), p);
812 // Creates "host:port" string using given |host| and |port|. If
813 // |host| is numeric IPv6 address (e.g., ::1), it is enclosed by "["
815 StringRef make_http_hostport(BlockAllocator &balloc, const StringRef &host,
819 StringRef make_http_hostport(OutputIt first, const StringRef &host,
822 return make_hostport(first, host, port);
825 auto ipv6 = ipv6_numeric_addr(host.c_str());
832 p = std::copy(std::begin(host), std::end(host), p);
846 // Copies 2 byte unsigned integer |n| in host byte order to |buf| in
850 // Copies 4 byte unsigned integer |n| in host byte order to |buf| in
855 // order and returns it in host byte order.
859 // order and returns it in host byte order.
863 // order and returns it in host byte order.
932 // Returns host from |hostport|. If host cannot be found in
937 // split_hostport splits host and port in |hostport|. Unlike
938 // extract_host, square brackets enclosing host name is stripped. If