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

Function writePostBody

plugins/xdebug/xdebug_transforms.cc:55–66  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

53}
54
55static void
56writePostBody(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
68static int
69body_transform(TSCont contp, TSEvent event, void * /* edata ATS_UNUSED */)

Callers 2

body_transformFunction · 0.85
XInjectResponseHeadersFunction · 0.85

Calls 8

getPostBodyFunction · 0.85
TSIOBufferWriteFunction · 0.85
TSVIONBytesSetFunction · 0.85
TSVIOReenableFunction · 0.85
test_and_setMethod · 0.80
getMethod · 0.45
dataMethod · 0.45
lengthMethod · 0.45

Tested by

no test coverage detected