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
.
Get Apache: The Definitive Guide, 3rd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.