TSMimeHdrCopy

Synopsis

#include <ts/ts.h>

TSReturnCode TSMimeHdrCopy(TSMBuffer dest_bufp, TSMLoc dest_offset, TSMBuffer src_bufp, TSMLoc src_offset)

Description

Copies the contents of the MIME header located at :arg:`src_loc` within :arg:`src_bufp` to the MIME header located at :arg:`dest_loc` within :arg:`dest_bufp`.

TSMimeHdrCopy() works correctly even if :arg:`src_bufp` and :arg:`dest_bufp` point to different marshal buffers.

重要

You must create the destination MIME header before copying into it, using TSMimeHdrCreate().