Method: HTTP::Protocol::HTTP2::FlowControl#send_window_update

Defined in:
lib/http/protocol/http2/flow_control.rb

#send_window_update(window_increment) ⇒ Object

Notify the remote end that we are prepared to receive more data:



63
64
65
66
67
68
69
70
# File 'lib/http/protocol/http2/flow_control.rb', line 63

def send_window_update(window_increment)
  frame = WindowUpdateFrame.new(self.id)
  frame.pack window_increment
  
  write_frame(frame)
  
  @local_window.used -= window_increment
end