Module: H2::FrameDebugger

Defined in:
lib/h2.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(base) ⇒ Object



139
140
141
142
# File 'lib/h2.rb', line 139

def self.included base
  H2.verbose!
  base::PARSER_EVENTS.push :frame_sent, :frame_received
end

Instance Method Details

#on_frame_received(f) ⇒ Object



148
149
150
# File 'lib/h2.rb', line 148

def on_frame_received f
  Logger.debug "Received frame: #{truncate_frame(f).inspect}"
end

#on_frame_sent(f) ⇒ Object



144
145
146
# File 'lib/h2.rb', line 144

def on_frame_sent f
  Logger.debug "Sent frame: #{truncate_frame(f).inspect}"
end