TSMimeHdrCopy - TSMimeHdrCopy API function
Contents
Copyright
2025, dev@trafficserver.apache.org
9.2 May 22, 2025 TSMIMEHDRCOPY(3ts)
Description
Copies the contents of the MIME header located at src_loc within src_bufp to the MIME header located at
dest_loc within dest_bufp.
TSMimeHdrCopy() works correctly even if src_bufp and dest_bufp point to different marshal buffers.
IMPORTANT:
You must create the destination MIME header before copying into it, using TSMimeHdrCreate().
Name
TSMimeHdrCopy - TSMimeHdrCopy API function
Synopsis
#include <ts/ts.h>
TSReturnCodeTSMimeHdrCopy(TSMBufferdest_bufp,TSMLocdest_offset,TSMBuffersrc_bufp,TSMLocsrc_offset)