Method: Protocol::HTTP2::LocalWindow#initialize
- Defined in:
- lib/protocol/http2/window.rb
#initialize(capacity = DEFAULT_CAPACITY, desired: nil) ⇒ LocalWindow
Initialize a local window with optional desired capacity.
101 102 103 104 105 106 107 |
# File 'lib/protocol/http2/window.rb', line 101 def initialize(capacity = DEFAULT_CAPACITY, desired: nil) super(capacity) # The desired capacity of the window, may be bigger than the initial capacity. # If that is the case, we will likely send a window update to the remote end to increase the capacity. @desired = desired end |