Provided by: trafficserver-dev_5.3.0-2ubuntu2_amd64 bug

NAME

       TSHttpTxnIntercept  -  allows a plugin take over the servicing of the request as though it
       was the origin server

SYNOPSIS

       #include <ts/ts.h>

       void TSHttpTxnIntercept(TSCont contp, TSHttpTxn txnp)

DESCRIPTION

       contp will be sent TS_EVENT_NET_ACCEPT.  The edata passed with TS_NET_EVENT_ACCEPT  is  an
       TSVConn  just as it would be for a normal accept.  The plugin must act as if it is an http
       server and read the http request and body off the TSVConn and send an http response header
       and body.

       TSHttpTxnIntercept()  must be called be called from only TS_HTTP_READ_REQUEST_HOOK.  Using
       TSHttpTxnIntercept will bypass the Traffic Server cache.  If response sent by  the  plugin
       should  be  cached,  use TSHttpTxnServerIntercept() instead.  TSHttpTxnIntercept() primary
       use is allow plugins to serve data about their functioning directly.

       TSHttpTxnIntercept() must only be called once per transaction.

COPYRIGHT

       2014, dev@trafficserver.apache.org