Module: H2::FrameDebugger
- Defined in:
- lib/h2.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.included(base) ⇒ Object
138 139 140 |
# File 'lib/h2.rb', line 138 def self.included base base::PARSER_EVENTS.push :frame_sent, :frame_received end |
Instance Method Details
#on_frame_received(f) ⇒ Object
146 147 148 |
# File 'lib/h2.rb', line 146 def on_frame_received f Logger.debug "Received frame: #{truncate_frame(f).inspect}" end |
#on_frame_sent(f) ⇒ Object
142 143 144 |
# File 'lib/h2.rb', line 142 def on_frame_sent f Logger.debug "Sent frame: #{truncate_frame(f).inspect}" end |