TSMIMEHDRCOPY(3ts)
π 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. π
π COPYRIGHT π
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
- ubuntu noble: trafficserver-dev 9.2.3+ds-1+deb12u1ubuntu0.1 Β· Apache-2.0
- ubuntu questing: trafficserver-dev 9.2.5+ds-1ubuntu2.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms