.\" Man page generated from reStructuredText. . . .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 .. .TH "TSHTTPHDRHOSTGET" "3ts" "Nov 02, 2023" "9.2" "Apache Traffic Server" .SH NAME TSHttpHdrHostGet \- TSHttpHdrHostGet API function .SH SYNOPSIS .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C #include .ft P .fi .UNINDENT .UNINDENT .INDENT 0.0 .TP .B const char *TSHttpHdrHostGet(\fI\%TSMBuffer\fP bufp, \fI\%TSMLoc\fP offset, int *length) .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 \fI\%TSHttpTxnEffectiveUrlStringGet()\fP and extracting the host from the result. .UNINDENT .UNINDENT .SH COPYRIGHT 2023, dev@trafficserver.apache.org .\" Generated by docutils manpage writer. .