TSHTTPHDRDESTROY(3ts)
π TSHTTPHDRDESTROY π
okay bestie, welcome to the Apache Traffic Server manual pages, the 3ts section, and today's main character is TSHttpHdrDestroy. yes she destroys things. no she is not sorry. let's get into it π
β¨ NAME β¨
TSHttpHdrDestroy β the TSHttpHdrDestroy API function. that's it, that's her whole job description, and she's iconic for it π
πΈ SYNOPSIS πΈ
#include <ts/ts.h>
void TSHttpHdrDestroy(TSMBuffer bufp, TSMLoc offset)
look at that. two args, no return value, zero drama. she takes and she takes and she gives you literally nothing back and honestly? respect π«Ά
π¦ DESCRIPTION π¦
so here's the tea, bestie: TSHttpHdrDestroy destroys the HTTP header located at hdr_loc within the marshal buffer bufp. that's the whole vibe. you point her at a marshal buffer (bufp) and the header living at hdr_loc inside it, and she sends that header to the shadow realm. gone. poof. β¨
(yes, the synopsis calls the second parameter offset and the description calls it hdr_loc β the docs are just like that sometimes, iykyk, we don't question the queen π)
β οΈ IMPORTANT: do NOT forget to release the handlehdr_locwith a call toTSHandleMLocRelease(). this is not a drill. this is not a suggestion. it's giving "if you skip this step you WILL be leaking handles" energy and nobody wants that for you, fr fr π
so the full little routine is: destroy the header, then release the handle. two steps. don't do one and ghost the other. that's the whole assignment π
π COPYRIGHT π
2026, dev@trafficserver.apache.org β the Apache Traffic Server devs, out here keeping the marshalling layer safe so we can all live our best lives π
okay that's the page!! Traffic Server 9.2, dated Feb 12, 2026, written by the lovely people at dev@trafficserver.apache.org π§ stay hydrated, release your handles, and slay πβ¨πΈ
π¦ 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