TSHTTPHDRSTATUSGET(3ts)

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

TSHTTPHDRSTATUSGET πŸ’– (3ts)

okay bestie so this is a page from the Apache Traffic Server manual β€” it's a section 3ts library call, and no cap, it's a little one, but it does something and we're gonna learn it together 🫢


✨ NAME ✨

TSHttpHdrStatusGet β€” the TSHttpHdrStatusGet API function πŸ’…


🌸 SYNOPSIS 🌸

#include <ts/ts.h>

TSHttpStatus TSHttpHdrStatusGet(TSMBuffer bufp, TSMLoc offset)

πŸ¦‹ DESCRIPTION πŸ¦‹

So what does it do, you ask? It pulls the status code value out of the HTTP response header that's identified by bufp and offset. That's the whole vibe. ✨

Now here's the tea πŸ“ β€” the value should be an enumeration value of TSHttpStatus. Should. But because plugins can just... call TSHttpHdrStatusSet() themselves, that might not actually be true. So like, don't be shocked if it's not a nice tidy enum value, iykyk πŸ™ˆ

And if the header isn't a valid response? Then you get TS_HTTP_STATUS_NONE back. That's your "nope, not a response, bestie" answer. πŸ’€


πŸ‘‘ SEE ALSO πŸ‘‘

  • TSHttpTxnClientRespGet()
  • TSHttpTxnServerRespGet()
  • TSHttpHdrTypeGet()

like, go read those too, they're the friend group 🌈


2026, dev@trafficserver.apache.org


and that's the whole page, bestie πŸŽ€ this one shipped as 9.2 back on Feb 12, 2026, and yeah β€” that's the manual, that's the version, that's the date, periodt πŸ’…βœ¨πŸ¦‹

πŸ“¦ where this page comes from