class Async::HTTP::Protocol::HTTP2
def initialize(controller, stream)
def initialize(controller, stream) @controller = controller @stream = stream @controller.on(:frame) do |data| @stream.write(data) @stream.flush end @controller.on(:frame_sent) do |frame| Async.logger.debug(self) {"Sent frame: #{frame.inspect}"} end @controller.on(:frame_received) do |frame| Async.logger.debug(self) {"Received frame: #{frame.inspect}"} end if @controller.is_a? ::HTTP2::Client @controller.send_connection_preface end @reader = read_in_background end