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

TSHttpHdrCopy - copies the contents of the HTTP header located at src_loc within src_bufp to the HTTP

Description

TSHttpHdrCopy() works correctly even if src_bufp and dest_bufp point to different MarshalBuffers.  Make
       sure that you create the destination HTTP header before copying into it.

       NOTE:TSHttpHdrCopy() appends the port number to the domain of the URL portion of the header. For example, a
          copy of http://www.example.com appears as http://www.example.com:80 in the destination buffer.

Name

       TSHttpHdrCopy  -  copies  the  contents of the HTTP header located at src_loc within src_bufp to the HTTP
       header located at dest_loc within dest_bufp

Synopsis

          #include <ts/ts.h>

       TSReturnCodeTSHttpHdrCopy(TSMBufferdest_bufp,TSMLocdest_offset,TSMBuffersrc_bufp,TSMLocsrc_offset)

See Also