| 53 | } |
| 54 | |
| 55 | static void |
| 56 | writePostBody(TSHttpTxn txn, BodyBuilder *data) |
| 57 | { |
| 58 | if (data->wrote_body && data->hdr_ready && !data->wrote_postbody.test_and_set()) { |
| 59 | Dbg(dbg_ctl_xform, "body_transform(): Writing postbody headers..."); |
| 60 | std::string postbody = getPostBody(txn); |
| 61 | TSIOBufferWrite(data->output_buffer.get(), postbody.data(), postbody.length()); |
| 62 | data->nbytes += postbody.length(); |
| 63 | TSVIONBytesSet(data->output_vio, data->nbytes); |
| 64 | TSVIOReenable(data->output_vio); |
| 65 | } |
| 66 | } |
| 67 | |
| 68 | static int |
| 69 | body_transform(TSCont contp, TSEvent event, void * /* edata ATS_UNUSED */) |
no test coverage detected