| 394 | } |
| 395 | |
| 396 | void |
| 397 | Http3App::_set_qpack_stream(Http3StreamType type, QUICStreamVCAdapter *adapter) |
| 398 | { |
| 399 | // Change app to QPACK from Http3 |
| 400 | if (type == Http3StreamType::QPACK_ENCODER) { |
| 401 | if (this->_qc->direction() == NET_VCONNECTION_IN) { |
| 402 | this->_ssn->remote_qpack()->set_encoder_stream(adapter->stream().id()); |
| 403 | this->_update_vio_cont_to_QPACK(this->_ssn->remote_qpack(), adapter); |
| 404 | } else { |
| 405 | this->_ssn->local_qpack()->set_encoder_stream(adapter->stream().id()); |
| 406 | this->_update_vio_cont_to_QPACK(this->_ssn->local_qpack(), adapter); |
| 407 | } |
| 408 | } else if (type == Http3StreamType::QPACK_DECODER) { |
| 409 | if (this->_qc->direction() == NET_VCONNECTION_IN) { |
| 410 | this->_ssn->local_qpack()->set_decoder_stream(adapter->stream().id()); |
| 411 | this->_update_vio_cont_to_QPACK(this->_ssn->local_qpack(), adapter); |
| 412 | } else { |
| 413 | this->_ssn->remote_qpack()->set_decoder_stream(adapter->stream().id()); |
| 414 | this->_update_vio_cont_to_QPACK(this->_ssn->remote_qpack(), adapter); |
| 415 | } |
| 416 | } else { |
| 417 | ink_abort("unknown stream type"); |
| 418 | } |
| 419 | } |
| 420 | |
| 421 | QUICStreamVCAdapter::IOInfo & |
| 422 | Http3App::_get_stream_info(QUICStreamId stream_id) |
no test coverage detected