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

Function shortcutResponse

plugins/prefetch/plugin.cc:427–433  ·  view source on GitHub ↗

* @brief short-cut to set the response . */

Source from the content-addressed store, hash-verified

425 * @brief short-cut to set the response .
426 */
427TSEvent
428shortcutResponse(PrefetchTxnData *data, TSHttpStatus status, const char *body, TSEvent event)
429{
430 data->_status = status;
431 data->_body.assign(body);
432 return event;
433}
434
435/**
436 * @brief Checks if we are still supposed to schedule a background fetch based on whether the object is in the cache.

Callers 1

contHandleFetchFunction · 0.85

Calls 1

assignMethod · 0.45

Tested by

no test coverage detected