Method: HTTP::Protocol::HTTP2::FlowControl#available_frame_size

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

#available_frame_sizeObject



27
28
29
30
31
32
33
34
35
36
# File 'lib/http/protocol/http2/flow_control.rb', line 27

def available_frame_size
  maximum_frame_size = self.maximum_frame_size
  available_size = @remote_window.available
  
  if available_size < maximum_frame_size
    return available_size
  else
    return maximum_frame_size
  end
end