TSHTTPHDRSTATUSGET(3ts)
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 π
π COPYRIGHT π
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
- 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