TSHTTPTXNINFOINTGET(3ts)

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

πŸ’– 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 after TS_HTTP_CACHE_LOOKUP_COMPLETE_HOOK hook. a value of 1 means the response is returned from RAM cache πŸ“. a value of 0 means otherwise.
  • enumerator TS_TXN_INFO_CACHE_COMPRESSED_IN_RAM β€” this info is available at or after TS_HTTP_CACHE_LOOKUP_COMPLETE_HOOK hook. a value of 1 means the response is returned from RAM cache and is compressed (zipped and slayed πŸ”₯). a value of 0 means otherwise.
  • enumerator TS_TXN_INFO_CACHE_HIT_RWW β€” this info is available at or after TS_HTTP_CACHE_LOOKUP_COMPLETE_HOOK hook. a value of 1 means the response is returned via Read-While-Writer functionality. a value of 0 means otherwise.
  • enumerator TS_TXN_INFO_CACHE_OPEN_READ_TRIES β€” this info is available at or after TS_HTTP_CACHE_LOOKUP_COMPLETE_HOOK hook. 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 after TS_HTTP_CACHE_LOOKUP_COMPLETE_HOOK hook. 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 after TS_HTTP_CACHE_LOOKUP_COMPLETE_HOOK hook. 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 πŸ’–


2026, dev@trafficserver.apache.org


and that's the whole page, bestie!! this cutie is from Apache Traffic Server, version 9.2, dated Feb 12, 2026. go forth and read your transaction info, you absolute legend πŸ’œπŸ¦‹πŸŒΈ
πŸ“¦ where this page comes from