Hi,
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
hook (TS_EVENT_HTTP_TXN_CLOSE)
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
getClientResponseHeaderSize
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
Plugin::HOOK_TXN_CLOSE?

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

Thanks

Reply via email to