Module: HTTP2::FlowBuffer

Includes:
Error
Included in:
Connection, Stream
Defined in:
lib/http/2/flow_buffer.rb

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

Instance Method Details

#buffered_amountInteger

Amount of buffered data. Only DATA payloads are subject to flow stream and connection flow control.

Returns:

  • (Integer)


16
17
18
# File 'lib/http/2/flow_buffer.rb', line 16

def buffered_amount
  send_buffer.bytesize
end

#flushObject



20
21
22
# File 'lib/http/2/flow_buffer.rb', line 20

def flush
  send_data
end