Name

ap_parse_hostinfo_components — dissect host:port

Synopsis

int ap_parse_hostinfo_components(pool *p, const char *hostinfo, uri_components 
*uptr)

Occasionally, it is necessary to parse host:port — for example, when handling a CONNECT request. This function does that, setting uptr->hostname, uptr->port_str, and uptr->port (if the port component is present). All other elements are set to NULL.