TSMIMEHDRFIELDAPPEND(3ts)

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

✨ NAME ✨

TSMimeHdrFieldAppend β€” the TSMimeHdrFieldAppend API function, bestie πŸ’…


πŸŽ€ SYNOPSIS πŸŽ€

#include <ts/ts.h>

TSReturnCode TSMimeHdrFieldAppend(TSMBuffer bufp, TSMLoc hdr, TSMLoc field)

🌸 DESCRIPTION 🌸

Okay so picture this: you got a MIME field, and you wanna attach it to a header. That's literally the whole vibe. 🫢

The header is represented by the bufp and hdr arguments, and those should have been obtained by a call to TSHttpTxnClientReqGet() or something similar. No cap.

And listen β€” if the field in field was created by calling TSMimeHdrFieldCreateNamed(), then the same bufp and hdr you passed to that function need to be passed to this function. Same ones. Don't switch them up, iykyk. πŸ™ˆ

It returns TS_SUCCESS if the field was attached to the header, and TS_ERROR if it was not. Simple as that.

πŸ’€ Important: fields cannot be attached to read only headers. Like, it's just not happening, periodt.

2026, dev@trafficserver.apache.org


And that's the whole page, babe πŸ¦‹ Apache Traffic Server, version 9.2, dated Feb 12, 2026 β€” slay, ate, no crumbs left. Byeeee πŸ’–βœ¨

πŸ“¦ where this page comes from