table of contents
other versions
- jessie-backports 7.0.0-4~bpo8+1
- stretch 7.0.0-6+deb9u2
- testing 8.0.2+ds-1
- stretch-backports 7.1.6+ds-1~bpo9+1
- unstable 8.0.2+ds-1
TSHTTPHDRHOSTGET(3ts) | Apache Traffic Server | TSHTTPHDRHOSTGET(3ts) |
NAME¶
TSHttpHdrHostGet -SYNOPSIS¶
#include <ts/ts.h>- const char* TSHttpHdrHostGet(TSMBuffer bufp, TSMLoc offset, int * length)
DESCRIPTION¶
Get the host for the request. bufp and offset must reference an HTTP request header. A pointer to the host is returned and the length is stored in the int pointed at by length. Note the returned text may not be null terminated. The URL in the request is checked first then the Host header field. NOTE:This is much faster than calling
TSHttpEffectiveUrlStringGet() and extracting the host from the
result.
COPYRIGHT¶
2015, dev@trafficserver.apache.orgJanuary 24, 2017 | 7.0 |