logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

TSHttpHdrHostGet - TSHttpHdrHostGet API function

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 TSHttpTxnEffectiveUrlStringGet() and extracting  the  host  from  the
          result.

Name

       TSHttpHdrHostGet - TSHttpHdrHostGet API function

Synopsis

          #include <ts/ts.h>

       constchar*TSHttpHdrHostGet(TSMBufferbufp,TSMLocoffset,int*length)

See Also