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

Function GeneratorPOSTResponse

plugins/generator/generator.cc:376–394  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

374}
375
376static TSReturnCode
377GeneratorPOSTResponse(GeneratorRequest *grq)
378{
379 GeneratorHttpHeader response;
380 VDEBUG("writing POST response");
381
382 if (WriteResponseHeader(response, TS_HTTP_STATUS_OK) != TS_SUCCESS) {
383 return TS_ERROR;
384 }
385
386 int hdrlen = TSHttpHdrLengthGet(response.buffer, response.header);
387
388 TSHttpHdrPrint(response.buffer, response.header, grq->writeio.iobuf);
389
390 TSVIONBytesSet(grq->writeio.vio, hdrlen);
391 TSVIOReenable(grq->writeio.vio);
392
393 return TS_SUCCESS;
394}
395
396static bool
397GeneratorParseRequest(GeneratorRequest *grq)

Callers 1

GeneratorInterceptHookFunction · 0.85

Calls 5

TSHttpHdrLengthGetFunction · 0.85
TSHttpHdrPrintFunction · 0.85
TSVIONBytesSetFunction · 0.85
TSVIOReenableFunction · 0.85
WriteResponseHeaderFunction · 0.70

Tested by

no test coverage detected