| 35 | } |
| 36 | |
| 37 | Http3ErrorUPtr |
| 38 | Http3FrameCounter::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 | |
| 51 | uint64_t |
| 52 | Http3FrameCounter::get_count(uint64_t type) const |
no test coverage detected