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 Attribute Summary collapse
-
#send_buffer ⇒ Object
readonly
Returns the value of attribute send_buffer.
Instance Method Summary collapse
-
#buffered_amount ⇒ Integer
Amount of buffered data.
- #flush ⇒ Object
Instance Attribute Details
#send_buffer ⇒ Object (readonly)
Returns the value of attribute send_buffer.
10 11 12 |
# File 'lib/http/2/flow_buffer.rb', line 10 def send_buffer @send_buffer end |
Instance Method Details
#buffered_amount ⇒ Integer
Amount of buffered data. Only DATA payloads are subject to flow stream and connection flow control.
18 19 20 |
# File 'lib/http/2/flow_buffer.rb', line 18 def buffered_amount @send_buffer.bytesize end |
#flush ⇒ Object
22 23 24 |
# File 'lib/http/2/flow_buffer.rb', line 22 def flush send_data end |