Module: HTTP2::FlowBuffer
Overview
Implementation of stream and connection DATA flow control: frames may be split and / or may be buffered based on current flow control window.
Constant Summary collapse
- MAX_WINDOW_SIZE =
(2 << 30) - 1
Instance Method Summary collapse
-
#buffered_amount ⇒ Integer
Amount of buffered data.
- #flush ⇒ Object
Instance Method Details
#buffered_amount ⇒ Integer
Amount of buffered data. Only DATA payloads are subject to flow stream and connection flow control.
16 17 18 |
# File 'lib/http/2/flow_buffer.rb', line 16 def buffered_amount send_buffer.bytesize end |
#flush ⇒ Object
20 21 22 |
# File 'lib/http/2/flow_buffer.rb', line 20 def flush send_data end |