.\" Man page generated from reStructuredText. . .TH "TSHTTPHDRHOSTGET" "3ts" "Mar 08, 2019" "7.1" "Apache Traffic Server" .SH NAME TSHttpHdrHostGet \- TSHttpHdrHostGet API function . .nr rst2man-indent-level 0 . .de1 rstReportMargin \\$1 \\n[an-margin] level \\n[rst2man-indent-level] level margin: \\n[rst2man-indent\\n[rst2man-indent-level]] - \\n[rst2man-indent0] \\n[rst2man-indent1] \\n[rst2man-indent2] .. .de1 INDENT .\" .rstReportMargin pre: . RS \\$1 . nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin] . nr rst2man-indent-level +1 .\" .rstReportMargin post: .. .de UNINDENT . RE .\" indent \\n[an-margin] .\" old: \\n[rst2man-indent\\n[rst2man-indent-level]] .nr rst2man-indent-level -1 .\" new: \\n[rst2man-indent\\n[rst2man-indent-level]] .in \\n[rst2man-indent\\n[rst2man-indent-level]]u .. .SH SYNOPSIS .sp \fI#include \fP .INDENT 0.0 .TP .B const char* TSHttpHdrHostGet(TSMBuffer\fI\ bufp\fP, TSMLoc\fI\ offset\fP, int *\fI\ length\fP) .UNINDENT .SH DESCRIPTION .sp Get the host for the request. \fIbufp\fP and \fIoffset\fP must reference an HTTP request header. A pointer to the host is returned and the length is stored in the \fBint\fP pointed at by \fIlength\fP\&. Note the returned text may not be null terminated. The URL in the request is checked first then the \fBHost\fP header field. .sp \fBNOTE:\fP .INDENT 0.0 .INDENT 3.5 This is much faster than calling \fBTSHttpTxnEffectiveUrlStringGet()\fP and extracting the host from the result. .UNINDENT .UNINDENT .SH COPYRIGHT 2019, dev@trafficserver.apache.org .\" Generated by docutils manpage writer. .