Method: Protocol::HTTP2::Window#initialize
- Defined in:
- lib/protocol/http2/window.rb
#initialize(capacity = DEFAULT_CAPACITY) ⇒ Window
Initialize a new flow control window.
15 16 17 18 19 20 21 22 |
# File 'lib/protocol/http2/window.rb', line 15 def initialize(capacity = DEFAULT_CAPACITY) # This is the main field required: @available = capacity # These two fields are primarily used for efficiently sending window updates: @used = 0 @capacity = capacity end |