TSMIMEHDRFIELDAPPEND(3ts)
β¨ 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.
π COPYRIGHT π
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
- 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