trafficserver-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Yitzchak Weiser <>
Date Wed, 27 Jan 2016 20:54:43 GMT
Im a bit new to TS and TS plugin development, so I started writing one
using the ATSCPPAPI
I am trying to get the total Req/Resp Hdr/Bdy bite sizes using
the transaction.getClientResponseHeaderSize() and getClientResponseBodySize
respectively.  I placed it in the latest CPP transaction hook,
the HOOK_SEND_RESPONSE_HEADERS and the values are 0. This makes sense, as
the Response Headers/Body were not sent to the client yet. However, I
cannot find a later hook, it seems like the CPP api wraps calls to
TSHttpTxnClientRespHdrBytesGet and that must be done TransactionClose
however, the CPP API does not expose a hook for the transaction close,
rather expects you to place all clean up code in the destructor, which gets
called during TS_EVENT_HTTP_TXN_CLOSE. This doesnt work for the
as I need a reference to the transaction? Did I miss something here? Any
reason why the CPP API cannot directly expose a hook for

How else can I get the values of the client response hdrs/body bytes?


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message