Lines Matching refs:frame

103   // frame chunk.
162 int on_header_callback2(nghttp2_session *session, const nghttp2_frame *frame,
170 verbose_on_header_callback(session, frame, namebuf.base, namebuf.len,
173 if (frame->hd.type != NGHTTP2_HEADERS) {
178 nghttp2_session_get_stream_user_data(session, frame->hd.stream_id));
201 if (frame->headers.cat == NGHTTP2_HCAT_HEADERS) {
218 if (frame->headers.cat == NGHTTP2_HCAT_HEADERS) {
235 const nghttp2_frame *frame, nghttp2_rcbuf *name,
240 nghttp2_session_get_stream_user_data(session, frame->hd.stream_id));
250 << frame->hd.stream_id << ": name=["
263 const nghttp2_frame *frame, void *user_data) {
266 if (frame->headers.cat != NGHTTP2_HCAT_REQUEST) {
271 << frame->hd.stream_id;
274 upstream->on_start_request(frame);
280 void Http2Upstream::on_start_request(const nghttp2_frame *frame) {
282 frame->hd.stream_id);
283 nghttp2_session_set_stream_user_data(session_, frame->hd.stream_id,
309 const nghttp2_frame *frame) {
410 if (!(frame->hd.flags & NGHTTP2_FLAG_END_STREAM)) {
413 // If END_STREAM flag is set to HEADERS frame, we are sure that
442 if (frame->hd.flags & NGHTTP2_FLAG_END_STREAM) {
546 int on_frame_recv_callback(nghttp2_session *session, const nghttp2_frame *frame,
549 verbose_on_frame_recv_callback(session, frame, user_data);
554 switch (frame->hd.type) {
557 nghttp2_session_get_stream_user_data(session, frame->hd.stream_id));
562 if (frame->hd.flags & NGHTTP2_FLAG_END_STREAM) {
578 nghttp2_session_get_stream_user_data(session, frame->hd.stream_id));
583 if (frame->headers.cat == NGHTTP2_HCAT_REQUEST) {
588 return upstream->on_request_headers(downstream, frame);
591 if (frame->hd.flags & NGHTTP2_FLAG_END_STREAM) {
606 if ((frame->hd.flags & NGHTTP2_FLAG_ACK) == 0) {
613 auto debug_data = util::ascii_dump(frame->goaway.opaque_data,
614 frame->goaway.opaque_data_len);
617 << frame->goaway.last_stream_id
618 << ", error_code=" << frame->goaway.error_code
663 int on_frame_send_callback(nghttp2_session *session, const nghttp2_frame *frame,
666 verbose_on_frame_send_callback(session, frame, user_data);
671 switch (frame->hd.type) {
674 if ((frame->hd.flags & NGHTTP2_FLAG_END_STREAM) == 0) {
678 auto stream_id = frame->hd.stream_id;
703 if ((frame->hd.flags & NGHTTP2_FLAG_ACK) == 0) {
708 auto promised_stream_id = frame->push_promise.promised_stream_id;
722 // is called just after frame was serialized. So no worries about
727 promised_downstream->set_assoc_stream_id(frame->hd.stream_id);
738 for (size_t i = 0; i < frame->push_promise.nvlen; ++i) {
739 auto &nv = frame->push_promise.nva[i];
793 auto debug_data = util::ascii_dump(frame->goaway.opaque_data,
794 frame->goaway.opaque_data_len);
797 << frame->goaway.last_stream_id
798 << ", error_code=" << frame->goaway.error_code
810 const nghttp2_frame *frame, int lib_error_code,
814 ULOG(INFO, upstream) << "Failed to send control frame type="
815 << static_cast<uint32_t>(frame->hd.type)
819 if (frame->hd.type == NGHTTP2_HEADERS &&
824 nghttp2_session_get_stream_user_data(session, frame->hd.stream_id));
838 int send_data_callback(nghttp2_session *session, nghttp2_frame *frame,
850 if (frame->data.padlen > 0) {
851 padlen = frame->data.padlen - 1;