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

Method handle_frame

src/proxy/http3/Http3FrameCounter.cc:37–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35}
36
37Http3ErrorUPtr
38Http3FrameCounter::handle_frame(std::shared_ptr<const Http3Frame> frame, Http3StreamType /* s_type ATS_UNUSED */)
39{
40 Http3ErrorUPtr error = Http3ErrorUPtr(nullptr);
41 Http3FrameType f_type = frame->type();
42 if (f_type > Http3FrameType::X_MAX_DEFINED) {
43 f_type = Http3FrameType::X_MAX_DEFINED;
44 }
45 this->_frame_counts_in[static_cast<int>(f_type)]++;
46 Metrics::Counter::increment(http3_frame_metrics_in[static_cast<int>(f_type)]);
47
48 return error;
49}
50
51uint64_t
52Http3FrameCounter::get_count(uint64_t type) const

Callers 1

on_read_readyMethod · 0.45

Calls 2

incrementFunction · 0.85
typeMethod · 0.45

Tested by

no test coverage detected