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

Method hit

plugins/experimental/inliner/cache-handler.h:276–297  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

274 }
275
276 void
277 hit(TSVConn v)
278 {
279 assert(v != nullptr);
280
281 Dbg(dbg_ctl, "cache hit for %s (%" PRId64 " bytes)", src_.c_str(), TSVConnCacheObjectSizeGet(v));
282
283 assert(sink_);
284
285 *sink_ << original_;
286 *sink_ << "src=\"" ONE_PIXEL "\" ";
287 assert(!id_.empty());
288 *sink_ << "class=\"" << id_;
289 if (!classes_.empty()) {
290 *sink_ << " " << classes_;
291 }
292 *sink_ << "\" ";
293
294 sink_.reset();
295
296 io::vconnection::read(v, std::move(*this), TSVConnCacheObjectSizeGet(v));
297 }
298
299 void
300 miss()

Callers 1

handleMethod · 0.80

Calls 5

readFunction · 0.70
c_strMethod · 0.45
emptyMethod · 0.45
resetMethod · 0.45

Tested by

no test coverage detected