TSHTTPHDRDESTROY(3ts)

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

πŸ’– 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 handle hdr_loc with a call to TSHandleMLocRelease(). 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 πŸ“


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