Lines Matching refs:frame

901 int on_header_callback2(nghttp2_session *session, const nghttp2_frame *frame,
906 nghttp2_session_get_stream_user_data(session, frame->hd.stream_id));
918 switch (frame->hd.type) {
920 auto trailer = frame->headers.cat == NGHTTP2_HCAT_HEADERS &&
962 auto promised_stream_id = frame->push_promise.promised_stream_id;
1011 const nghttp2_frame *frame, nghttp2_rcbuf *name,
1016 nghttp2_session_get_stream_user_data(session, frame->hd.stream_id));
1023 if (frame->hd.type == NGHTTP2_PUSH_PROMISE) {
1024 stream_id = frame->push_promise.promised_stream_id;
1026 stream_id = frame->hd.stream_id;
1035 << " in frame type=" << static_cast<uint32_t>(frame->hd.type)
1048 const nghttp2_frame *frame, void *user_data) {
1051 switch (frame->hd.type) {
1053 if (frame->headers.cat != NGHTTP2_HCAT_RESPONSE &&
1054 frame->headers.cat != NGHTTP2_HCAT_PUSH_RESPONSE) {
1058 nghttp2_session_get_stream_user_data(session, frame->hd.stream_id));
1060 http2session->submit_rst_stream(frame->hd.stream_id,
1067 auto promised_stream_id = frame->push_promise.promised_stream_id;
1069 nghttp2_session_get_stream_user_data(session, frame->hd.stream_id));
1078 assert(downstream->get_downstream_stream_id() == frame->hd.stream_id);
1096 nghttp2_session *session, const nghttp2_frame *frame) {
1130 << "HTTP response headers. stream_id=" << frame->hd.stream_id << "\n"
1146 http2session->submit_rst_stream(frame->hd.stream_id,
1168 << "HTTP upgrade success. stream_id=" << frame->hd.stream_id;
1195 if (frame->hd.flags & NGHTTP2_FLAG_END_STREAM) {
1209 http2session->submit_rst_stream(frame->hd.stream_id, NGHTTP2_CANCEL);
1211 http2session->submit_rst_stream(frame->hd.stream_id,
1222 int on_frame_recv_callback(nghttp2_session *session, const nghttp2_frame *frame,
1227 switch (frame->hd.type) {
1230 nghttp2_session_get_stream_user_data(session, frame->hd.stream_id));
1238 http2session->submit_rst_stream(frame->hd.stream_id,
1242 } else if (frame->hd.flags & NGHTTP2_FLAG_END_STREAM) {
1264 nghttp2_session_get_stream_user_data(session, frame->hd.stream_id));
1270 if (frame->headers.cat == NGHTTP2_HCAT_RESPONSE ||
1271 frame->headers.cat == NGHTTP2_HCAT_PUSH_RESPONSE) {
1272 rv = on_response_headers(http2session, downstream, session, frame);
1277 } else if (frame->headers.cat == NGHTTP2_HCAT_HEADERS) {
1279 rv = on_response_headers(http2session, downstream, session, frame);
1287 if (frame->hd.flags & NGHTTP2_FLAG_END_STREAM) {
1313 nghttp2_session_get_stream_user_data(session, frame->hd.stream_id));
1317 frame->rst_stream.error_code);
1323 if ((frame->hd.flags & NGHTTP2_FLAG_ACK) == 0) {
1324 http2session->on_settings_received(frame);
1338 if (frame->hd.flags & NGHTTP2_FLAG_ACK) {
1346 auto promised_stream_id = frame->push_promise.promised_stream_id;
1351 << frame->hd.stream_id
1356 nghttp2_session_get_stream_user_data(session, frame->hd.stream_id));
1365 assert(downstream->get_downstream_stream_id() == frame->hd.stream_id);
1388 auto debug_data = util::ascii_dump(frame->goaway.opaque_data,
1389 frame->goaway.opaque_data_len);
1392 << "GOAWAY received: last-stream-id=" << frame->goaway.last_stream_id
1393 << ", error_code=" << frame->goaway.error_code
1468 int on_frame_send_callback(nghttp2_session *session, const nghttp2_frame *frame,
1472 if (frame->hd.type == NGHTTP2_DATA || frame->hd.type == NGHTTP2_HEADERS) {
1474 nghttp2_session_get_stream_user_data(session, frame->hd.stream_id));
1482 if (frame->hd.type == NGHTTP2_HEADERS &&
1483 frame->headers.cat == NGHTTP2_HCAT_REQUEST) {
1496 if ((frame->hd.flags & NGHTTP2_FLAG_END_STREAM) == 0) {
1505 if (frame->hd.type == NGHTTP2_SETTINGS &&
1506 (frame->hd.flags & NGHTTP2_FLAG_ACK) == 0) {
1515 const nghttp2_frame *frame, int lib_error_code,
1519 SSLOG(INFO, http2session) << "Failed to send control frame type="
1520 << static_cast<uint32_t>(frame->hd.type)
1524 if (frame->hd.type != NGHTTP2_HEADERS ||
1531 nghttp2_session_get_stream_user_data(session, frame->hd.stream_id));
1566 int send_data_callback(nghttp2_session *session, nghttp2_frame *frame,
1571 nghttp2_session_get_stream_user_data(session, frame->hd.stream_id));
1585 if (frame->data.padlen > 0) {
1586 padlen = frame->data.padlen - 1;
1893 // ping frame to see whether connection is alive.
2411 void Http2Session::on_settings_received(const nghttp2_frame *frame) {
2420 for (size_t i = 0; i < frame->settings.niv; ++i) {
2421 auto &ent = frame->settings.iv[i];