TSHttpHdrHostGet
==================

Synopsis
--------

`#include <ts/ts.h>`

.. c:function:: const char* TSHttpHdrHostGet(TSMBuffer bufp, TSMLoc offset, int 
*length)


Description
-----------

Get the host for the request. :arg:`bufp` and :arg:`offset` must reference an 
HTTP request header. A pointer to the host is returned and, if :arg:`length` is 
not ``NULL`` the length is stored at that location. Note the returned text may 
not be null terminated. The URL in the request is checked first, and then the 
``HOST`` header field.

Reply via email to