| 52 | } // end anonymous namespace |
| 53 | |
| 54 | Http3App::Http3App(NetVConnection *client_vc, QUICConnection *qc, IpAllow::ACL &&session_acl, |
| 55 | const HttpSessionAccept::Options &options) |
| 56 | : QUICApplication(qc) |
| 57 | { |
| 58 | this->_ssn = new Http3Session(client_vc); |
| 59 | this->_ssn->acl = std::move(session_acl); |
| 60 | this->_ssn->accept_options = &options; |
| 61 | this->_ssn->new_connection(client_vc, nullptr, nullptr); |
| 62 | |
| 63 | this->_qc->stream_manager()->set_default_application(this); |
| 64 | |
| 65 | this->_control_stream_dispatcher.add_handler(this->_ssn->get_received_frame_counter()); |
| 66 | |
| 67 | this->_protocol_enforcer = new Http3ProtocolEnforcer(); |
| 68 | this->_control_stream_dispatcher.add_handler(this->_protocol_enforcer); |
| 69 | |
| 70 | this->_settings_handler = new Http3SettingsHandler(this->_ssn); |
| 71 | this->_control_stream_dispatcher.add_handler(this->_settings_handler); |
| 72 | |
| 73 | this->_settings_framer = new Http3SettingsFramer(client_vc->get_context()); |
| 74 | this->_control_stream_collector.add_generator(this->_settings_framer); |
| 75 | |
| 76 | SET_HANDLER(&Http3App::main_event_handler); |
| 77 | } |
| 78 | |
| 79 | Http3App::~Http3App() |
| 80 | { |
nothing calls this directly
no test coverage detected