TSHttpHdrCopy3ts
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
Usage
#include <ts/ts.h>
- TSReturnCode TSHttpHdrCopy(TSMBuffer dest_bufp, TSMLoc dest_offset, TSMBuffer src_bufp, TSMLoc src_offset)
Overview
TSHttpHdrCopy() works correctly even if src_bufp and dest_bufp point to different Marshal Buffers. 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.
Releases
3 releases since Debian 10 (Buster); the text changed 2 times.