Lines Matching defs:frame

258 void print_frame(print_type ptype, const nghttp2_frame *frame) {
259 fprintf(outfile, "%s%s%s frame ", frame_name_ansi_esc(ptype),
260 strframetype(frame->hd.type).c_str(), ansi_escend());
261 print_frame_hd(frame->hd);
262 if (frame->hd.flags) {
264 print_flags(frame->hd);
266 switch (frame->hd.type) {
268 if (frame->data.padlen > 0) {
270 fprintf(outfile, "(padlen=%zu)\n", frame->data.padlen);
275 fprintf(outfile, "(padlen=%zu", frame->headers.padlen);
276 if (frame->hd.flags & NGHTTP2_FLAG_PRIORITY) {
278 frame->headers.pri_spec.stream_id, frame->headers.pri_spec.weight,
279 frame->headers.pri_spec.exclusive);
282 switch (frame->headers.cat) {
298 print_nv(frame->headers.nva, frame->headers.nvlen);
304 frame->priority.pri_spec.stream_id, frame->priority.pri_spec.weight,
305 frame->priority.pri_spec.exclusive);
311 nghttp2_http2_strerror(frame->rst_stream.error_code),
312 frame->rst_stream.error_code);
317 static_cast<unsigned long>(frame->settings.niv));
318 for (size_t i = 0; i < frame->settings.niv; ++i) {
321 strsettingsid(frame->settings.iv[i].settings_id),
322 frame->settings.iv[i].settings_id, frame->settings.iv[i].value);
328 frame->push_promise.padlen, frame->push_promise.promised_stream_id);
329 print_nv(frame->push_promise.nva, frame->push_promise.nvlen);
334 util::format_hex(frame->ping.opaque_data, 8).c_str());
341 frame->goaway.last_stream_id,
342 nghttp2_http2_strerror(frame->goaway.error_code),
343 frame->goaway.error_code,
344 static_cast<unsigned int>(frame->goaway.opaque_data_len),
345 util::ascii_dump(frame->goaway.opaque_data,
346 frame->goaway.opaque_data_len)
352 frame->window_update.window_size_increment);
355 auto altsvc = static_cast<nghttp2_ext_altsvc *>(frame->ext.payload);
363 auto origin = static_cast<nghttp2_ext_origin *>(frame->ext.payload);
373 static_cast<nghttp2_ext_priority_update *>(frame->ext.payload);
389 const nghttp2_frame *frame, const uint8_t *name,
397 fprintf(outfile, " recv (stream_id=%d", frame->hd.stream_id);
410 const nghttp2_frame *frame,
414 print_frame(PRINT_RECV, frame);
420 const nghttp2_frame *frame,
426 print_frame(PRINT_RECV, frame);
432 const nghttp2_frame *frame,
436 print_frame(PRINT_SEND, frame);