QuicHttp3.Response (elixir_quic_http3 v1.0.0)

Copy Markdown View Source

Bounded incremental HTTP/3 response message decoder.

DATA and unknown extension payloads are consumed without buffering a complete frame. HEADERS have independent encoded, decoded and field-count limits. Protocol errors carry their stream/connection scope and application error code.

Without a QPACK table only the static/literal profile is accepted. With a dynamic table, a HEADERS section whose Required Insert Count is not yet satisfied blocks the message: later stream bytes and FIN are held, in order, until resume/2 succeeds. A decoded section with a nonzero Required Insert Count emits {:qpack_ack, required_insert_count} for the session's decoder stream.

Summary

Functions

Whether a HEADERS section is waiting for dynamic-table inserts.

Required Insert Count of the blocked section, or nil.

Retry a blocked HEADERS section with the current dynamic table, then replay held bytes and a held FIN in order.

Functions

blocked?(response)

Whether a HEADERS section is waiting for dynamic-table inserts.

feed(state, bytes, table \\ nil)

finish(state)

new(opts \\ [])

required_insert_count(response)

Required Insert Count of the blocked section, or nil.

resume(state, table)

Retry a blocked HEADERS section with the current dynamic table, then replay held bytes and a held FIN in order.

retained_bytes(state)