Lines Matching refs:frame

1407 int on_header_callback2(nghttp2_session *session, const nghttp2_frame *frame,
1417 verbose_on_header_callback(session, frame, namebuf.base, namebuf.len,
1420 if (frame->hd.type != NGHTTP2_HEADERS ||
1421 frame->headers.cat != NGHTTP2_HCAT_REQUEST) {
1424 auto stream = hd->get_stream(frame->hd.stream_id);
1484 const nghttp2_frame *frame, void *user_data) {
1487 if (frame->hd.type != NGHTTP2_HEADERS ||
1488 frame->headers.cat != NGHTTP2_HCAT_REQUEST) {
1492 auto stream = std::make_unique<Stream>(hd, frame->hd.stream_id);
1496 hd->add_stream(frame->hd.stream_id, std::move(stream));
1504 const nghttp2_frame *frame, void *user_data) {
1508 verbose_on_frame_recv_callback(session, frame, user_data);
1510 switch (frame->hd.type) {
1513 auto stream = hd->get_stream(frame->hd.stream_id);
1518 if (frame->hd.flags & NGHTTP2_FLAG_END_STREAM) {
1530 auto stream = hd->get_stream(frame->hd.stream_id);
1535 if (frame->headers.cat == NGHTTP2_HCAT_REQUEST) {
1540 hd->submit_non_final_response("100", frame->hd.stream_id);
1556 if (frame->hd.flags & NGHTTP2_FLAG_END_STREAM) {
1568 if (frame->hd.flags & NGHTTP2_FLAG_ACK) {
1581 const nghttp2_frame *frame, void *user_data) {
1586 verbose_on_frame_send_callback(session, frame, user_data);
1589 switch (frame->hd.type) {
1592 auto stream = hd->get_stream(frame->hd.stream_id);
1598 if (frame->hd.flags & NGHTTP2_FLAG_END_STREAM) {
1601 session, frame->hd.stream_id),
1614 if (frame->hd.flags & NGHTTP2_FLAG_ACK) {
1623 auto promised_stream_id = frame->push_promise.promised_stream_id;
1625 auto stream = hd->get_stream(frame->hd.stream_id);
1642 int send_data_callback(nghttp2_session *session, nghttp2_frame *frame,
1647 auto padlen = frame->data.padlen;
1648 auto stream = hd->get_stream(frame->hd.stream_id);
1695 const nghttp2_frame *frame, size_t max_payload,
1698 return std::min(max_payload, frame->hd.length + hd->get_config()->padding);