MCPcopy Create free account
hub / github.com/apache/trafficserver / TSHttpTxnServerStateGet

Function TSHttpTxnServerStateGet

src/api/InkAPI.cc:5270–5277  ·  view source on GitHub ↗

This is kinda horky, we have to use TSServerState instead of HttpTransact::ServerState_t, otherwise we have a prototype mismatch in the public ts/ts.h interfaces. */

Source from the content-addressed store, hash-verified

5268 HttpTransact::ServerState_t, otherwise we have a prototype
5269 mismatch in the public ts/ts.h interfaces. */
5270TSServerState
5271TSHttpTxnServerStateGet(TSHttpTxn txnp)
5272{
5273 sdk_assert(sdk_sanity_check_txn(txnp) == TS_SUCCESS);
5274
5275 HttpTransact::State *s = &((reinterpret_cast<HttpSM *>(txnp))->t_state);
5276 return static_cast<TSServerState>(s->current.state);
5277}
5278
5279void
5280TSHttpTxnDebugSet(TSHttpTxn txnp, int on)

Callers 2

EscalateResponseFunction · 0.85

Calls 1

sdk_sanity_check_txnFunction · 0.85

Tested by

no test coverage detected