TSHTTPTXNINFOINTGET(3ts)
π TSHTTPTXNINFOINTGET π
okay bestie, welcome to the TSHttpTxnInfoIntGet era β it's a lil function from the Apache Traffic Server manual, section 3ts, and she's lowkey iconic. let's get into it π«Ά
β¨ NAME β¨
TSHttpTxnInfoIntGet β the TSHttpTxnInfoIntGet API function. that's it, that's the name, no notes π
β¨ SYNOPSIS β¨
#include <ts/ts.h>
TSReturnCode TSHttpTxnInfoIntGet(TSHttpTxn txnp, TSHttpTxnInfoKey key,
TSMgmtInt *value)
β¨ DESCRIPTION β¨
so like, TSHttpTxnInfoIntGet() hands you arbitrary integer-typed info about a transaction, and which info you get is defined by TSHttpTxnInfoKey. no cap.
this API is gonna be part of a generic API umbrella that can support returning arbitrary info about a transaction using custom log tags. so it's giving "one umbrella to rule them all" energy πβ¨
she works on multiple hooks depending on what info you're asking for, fr fr. like, cache-related info might only be available at or after the TS_HTTP_CACHE_LOOKUP_COMPLETE_HOOK hook. so timing is everything, bestie β vibe check your hook first π
TSHttpTxnInfoKey currently supports the below integer-based info about a transaction:
π enum TSHttpTxnInfoKey π
- enumerator
TS_TXN_INFO_CACHE_HIT_RAMβ this info is available at or afterTS_HTTP_CACHE_LOOKUP_COMPLETE_HOOKhook. a value of1means the response is returned from RAM cache π. a value of0means otherwise. - enumerator
TS_TXN_INFO_CACHE_COMPRESSED_IN_RAMβ this info is available at or afterTS_HTTP_CACHE_LOOKUP_COMPLETE_HOOKhook. a value of1means the response is returned from RAM cache and is compressed (zipped and slayed π₯). a value of0means otherwise. - enumerator
TS_TXN_INFO_CACHE_HIT_RWWβ this info is available at or afterTS_HTTP_CACHE_LOOKUP_COMPLETE_HOOKhook. a value of1means the response is returned via Read-While-Writer functionality. a value of0means otherwise. - enumerator
TS_TXN_INFO_CACHE_OPEN_READ_TRIESβ this info is available at or afterTS_HTTP_CACHE_LOOKUP_COMPLETE_HOOKhook. the value tells you the number of cache open read reattempts made by the transaction when a cache open read failed. like, how many times she tried again π - enumerator
TS_TXN_INFO_CACHE_OPEN_WRITE_TRIESβ this info is available at or afterTS_HTTP_CACHE_LOOKUP_COMPLETE_HOOKhook. the value tells you the number of cache open write reattempts made by the transaction when a cache open write failed. persistence queen π - enumerator
TS_TXN_INFO_CACHE_VOLUMEβ this info is available at or afterTS_HTTP_CACHE_LOOKUP_COMPLETE_HOOKhook. the value tells you the cache volume ID used for the cache object associated with the transaction. iykyk π¦
β¨ RETURN VALUES β¨
the API returns TS_SUCCESS if the requested info is supported, and TS_ERROR otherwise. simple as that, no drama π
β¨ COPYRIGHT β¨
2026, dev@trafficserver.apache.org
and that's the whole page, bestie!! this cutie is from Apache Traffic Server, version9.2, datedFeb 12, 2026. go forth and read your transaction info, you absolute legend ππ¦πΈ
π¦ 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