TSMIMEHDRCOPY(3ts)

πŸ“¦
version 9.2.5 Β· 4 versions
, in ubuntu noble, ubuntu questing

πŸ’– NAME πŸ’–

TSMimeHdrCopy β€” the TSMimeHdrCopy API function, bestie. that's it, that's the name πŸŽ€


✨ SYNOPSIS ✨

#include <ts/ts.h>

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

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so picture this: you've got a MIME header chilling at src_loc inside src_bufp, and you want all of its contents to show up at the MIME header living at dest_loc inside dest_bufp. that's literally the whole job. TSMimeHdrCopy() does the copy, no drama, no cap. πŸ’…

and here's the iconic part β€” it works correctly even if src_bufp and dest_bufp point to different marshal buffers. like, cross-buffer glow-up? fully supported. she's flexible like that. ✨

IMPORTANT: 🚨 you must create the destination MIME header before you copy into it, using TSMimeHdrCreate(). do not skip this step, do not pass go, do not try to copy into a header that doesn't exist yet. it's giving chaos and we don't do that here. 😭

2026, dev@trafficserver.apache.org


and that's the whole page, pookie 🫢 go forth and copy those headers responsibly. this was Apache Traffic Server 9.2, dated Feb 12, 2026 β€” mwah, periodt. πŸ’–πŸŒΈ

πŸ“¦ where this page comes from