Lines Matching refs:frame

42 /* The number of bytes of frame header. */
49 /* The one frame buffer length for transmission. We may use several of
55 /* The default length of DATA frame payload. */
72 /* Union of extension frame payload */
84 * Initializes frame header |hd| with given parameters. Reserved bit
114 * Returns the offset from the HEADERS frame payload where the
115 * compressed header block starts. The frame payload does not include
116 * frame header.
118 size_t nghttp2_frame_headers_payload_nv_offset(nghttp2_headers *frame);
121 * Packs HEADERS frame |frame| in wire format and store it in |bufs|.
122 * This function expands |bufs| as necessary to store frame.
127 * frame->hd.length is assigned after length is determined during
139 int nghttp2_frame_pack_headers(nghttp2_bufs *bufs, nghttp2_headers *frame,
143 * Unpacks HEADERS frame byte sequence into |frame|. This function
147 void nghttp2_frame_unpack_headers_payload(nghttp2_headers *frame,
151 * Packs PRIORITY frame |frame| in wire format and store it in
157 void nghttp2_frame_pack_priority(nghttp2_bufs *bufs, nghttp2_priority *frame);
160 * Unpacks PRIORITY wire format into |frame|.
162 void nghttp2_frame_unpack_priority_payload(nghttp2_priority *frame,
166 * Packs RST_STREAM frame |frame| in wire frame format and store it in
173 nghttp2_rst_stream *frame);
176 * Unpacks RST_STREAM frame byte sequence into |frame|.
178 void nghttp2_frame_unpack_rst_stream_payload(nghttp2_rst_stream *frame,
182 * Packs SETTINGS frame |frame| in wire format and store it in
192 * The length of the frame is too large.
194 int nghttp2_frame_pack_settings(nghttp2_bufs *bufs, nghttp2_settings *frame);
210 * Initializes payload of frame->settings. The |frame| takes
213 void nghttp2_frame_unpack_settings_payload(nghttp2_settings *frame,
235 * Packs PUSH_PROMISE frame |frame| in wire format and store it in
237 * frame.
242 * frame->hd.length is assigned after length is determined during
255 nghttp2_push_promise *frame,
259 * Unpacks PUSH_PROMISE frame byte sequence into |frame|. This
263 void nghttp2_frame_unpack_push_promise_payload(nghttp2_push_promise *frame,
267 * Packs PING frame |frame| in wire format and store it in
273 void nghttp2_frame_pack_ping(nghttp2_bufs *bufs, nghttp2_ping *frame);
276 * Unpacks PING wire format into |frame|.
278 void nghttp2_frame_unpack_ping_payload(nghttp2_ping *frame,
282 * Packs GOAWAY frame |frame| in wire format and store it in |bufs|.
283 * This function expands |bufs| as necessary to store frame.
294 * The length of the frame is too large.
296 int nghttp2_frame_pack_goaway(nghttp2_bufs *bufs, nghttp2_goaway *frame);
299 * Unpacks GOAWAY wire format into |frame|. The |payload| of length
303 * |frame|. The |var_gift_payloadlen| must be freed by
306 void nghttp2_frame_unpack_goaway_payload(nghttp2_goaway *frame,
312 * Unpacks GOAWAY wire format into |frame|. This function only exists
322 int nghttp2_frame_unpack_goaway_payload2(nghttp2_goaway *frame,
327 * Packs WINDOW_UPDATE frame |frame| in wire frame format and store it
334 nghttp2_window_update *frame);
337 * Unpacks WINDOW_UPDATE frame byte sequence into |frame|.
339 void nghttp2_frame_unpack_window_update_payload(nghttp2_window_update *frame,
343 * Packs ALTSVC frame |frame| in wire frame format and store it in
352 * Unpacks ALTSVC wire format into |frame|. The |payload| of
353 * |payloadlen| bytes contains frame payload. This function assumes
354 * that frame->payload points to the nghttp2_ext_altsvc object.
356 void nghttp2_frame_unpack_altsvc_payload(nghttp2_extension *frame,
361 * Unpacks ALTSVC wire format into |frame|. This function only exists
373 int nghttp2_frame_unpack_altsvc_payload2(nghttp2_extension *frame,
378 * Packs ORIGIN frame |frame| in wire frame format and store it in
388 * The length of the frame is too large.
393 * Unpacks ORIGIN wire format into |frame|. The |payload| of length
394 * |payloadlen| contains the frame payload.
404 int nghttp2_frame_unpack_origin_payload(nghttp2_extension *frame,
409 * Packs PRIORITY_UPDATE frame |frame| in wire frame format and store
419 * Unpacks PRIORITY_UPDATE wire format into |frame|. The |payload| of
420 * |payloadlen| bytes contains frame payload. This function assumes
421 * that frame->payload points to the nghttp2_ext_priority_update
424 void nghttp2_frame_unpack_priority_update_payload(nghttp2_extension *frame,
429 * Initializes HEADERS frame |frame| with given values. |frame| takes
433 void nghttp2_frame_headers_init(nghttp2_headers *frame, uint8_t flags,
438 void nghttp2_frame_headers_free(nghttp2_headers *frame, nghttp2_mem *mem);
440 void nghttp2_frame_priority_init(nghttp2_priority *frame, int32_t stream_id,
443 void nghttp2_frame_priority_free(nghttp2_priority *frame);
445 void nghttp2_frame_rst_stream_init(nghttp2_rst_stream *frame, int32_t stream_id,
448 void nghttp2_frame_rst_stream_free(nghttp2_rst_stream *frame);
451 * Initializes PUSH_PROMISE frame |frame| with given values. |frame|
454 void nghttp2_frame_push_promise_init(nghttp2_push_promise *frame, uint8_t flags,
459 void nghttp2_frame_push_promise_free(nghttp2_push_promise *frame,
463 * Initializes SETTINGS frame |frame| with given values. |frame| takes
467 void nghttp2_frame_settings_init(nghttp2_settings *frame, uint8_t flags,
470 void nghttp2_frame_settings_free(nghttp2_settings *frame, nghttp2_mem *mem);
473 * Initializes PING frame |frame| with given values. If the
478 void nghttp2_frame_ping_init(nghttp2_ping *frame, uint8_t flags,
481 void nghttp2_frame_ping_free(nghttp2_ping *frame);
484 * Initializes GOAWAY frame |frame| with given values. On success,
488 void nghttp2_frame_goaway_init(nghttp2_goaway *frame, int32_t last_stream_id,
492 void nghttp2_frame_goaway_free(nghttp2_goaway *frame, nghttp2_mem *mem);
494 void nghttp2_frame_window_update_init(nghttp2_window_update *frame,
498 void nghttp2_frame_window_update_free(nghttp2_window_update *frame);
500 void nghttp2_frame_extension_init(nghttp2_extension *frame, uint8_t type,
504 void nghttp2_frame_extension_free(nghttp2_extension *frame);
507 * Initializes ALTSVC frame |frame| with given values. This function
508 * assumes that frame->payload points to nghttp2_ext_altsvc object.
513 void nghttp2_frame_altsvc_init(nghttp2_extension *frame, int32_t stream_id,
518 * Frees up resources under |frame|. This function does not free
519 * nghttp2_ext_altsvc object pointed by frame->payload. This function
523 void nghttp2_frame_altsvc_free(nghttp2_extension *frame, nghttp2_mem *mem);
526 * Initializes ORIGIN frame |frame| with given values. This function
527 * assumes that frame->payload points to nghttp2_ext_origin object.
532 void nghttp2_frame_origin_init(nghttp2_extension *frame,
536 * Frees up resources under |frame|. This function does not free
537 * nghttp2_ext_origin object pointed by frame->payload. This function
541 void nghttp2_frame_origin_free(nghttp2_extension *frame, nghttp2_mem *mem);
544 * Initializes PRIORITY_UPDATE frame |frame| with given values. This
545 * function assumes that frame->payload points to
549 void nghttp2_frame_priority_update_init(nghttp2_extension *frame,
554 * Frees up resources under |frame|. This function does not free
555 * nghttp2_ext_priority_update object pointed by frame->payload. This
559 void nghttp2_frame_priority_update_free(nghttp2_extension *frame,
566 * returns 0, regardless of frame->hd.flags.
568 size_t nghttp2_frame_trail_padlen(nghttp2_frame *frame, size_t padlen);
570 void nghttp2_frame_data_init(nghttp2_data *frame, uint8_t flags,
573 void nghttp2_frame_data_free(nghttp2_data *frame);
628 * Sets Pad Length field and flags and adjusts frame header position
630 * |padlen| including Pad Length field. The |hd| is the frame header