------------------------------------------------------------------------- read_response_handler Handler for events related to hook READ_RESPONSE Input: contp continuation for the current transaction event event received data pointer on eventual data Output : Return Value: -------------------------------------------------------------------------*/
| 929 | Return Value: |
| 930 | -------------------------------------------------------------------------*/ |
| 931 | static int |
| 932 | read_response_handler(TSCont contp ATS_UNUSED, TSEvent event, void *edata) |
| 933 | { |
| 934 | TSHttpTxn txnp = static_cast<TSHttpTxn>(edata); |
| 935 | |
| 936 | switch (event) { |
| 937 | case TS_EVENT_HTTP_READ_RESPONSE_HDR: |
| 938 | if (transformable(txnp)) { |
| 939 | Dbg(dbg_ctl, "Add a transformation"); |
| 940 | transform_add(txnp); |
| 941 | } |
| 942 | TSHttpTxnReenable(txnp, TS_EVENT_HTTP_CONTINUE); |
| 943 | return 0; |
| 944 | default: |
| 945 | break; |
| 946 | } |
| 947 | |
| 948 | return 0; |
| 949 | } |
| 950 | |
| 951 | /*------------------------------------------------------------------------- |
| 952 | TSPluginInit |
nothing calls this directly
no test coverage detected