| 54 | } |
| 55 | |
| 56 | Http3ErrorUPtr |
| 57 | Http3HeaderVIOAdaptor::handle_frame(std::shared_ptr<const Http3Frame> frame, Http3StreamType /* s_type */) |
| 58 | { |
| 59 | ink_assert(frame->type() == Http3FrameType::HEADERS); |
| 60 | const Http3HeadersFrame *hframe = dynamic_cast<const Http3HeadersFrame *>(frame.get()); |
| 61 | |
| 62 | int res = this->_qpack->decode(this->_stream_id, hframe->header_block(), hframe->header_block_length(), _header, this); |
| 63 | |
| 64 | if (res == 0) { |
| 65 | // When decoding is not blocked, continuation should be called directly? |
| 66 | } else if (res == 1) { |
| 67 | // Decoding is blocked. |
| 68 | Dbg(dbg_ctl_http3, "Decoding is blocked. DecodeRequest is scheduled"); |
| 69 | } else if (res < 0) { |
| 70 | Dbg(dbg_ctl_http3, "Error on decoding header (%d)", res); |
| 71 | } else { |
| 72 | ink_abort("should not be here"); |
| 73 | } |
| 74 | |
| 75 | return Http3ErrorUPtr(nullptr); |
| 76 | } |
| 77 | |
| 78 | bool |
| 79 | Http3HeaderVIOAdaptor::is_complete() |
nothing calls this directly
no test coverage detected