class

HT2::DebugMode

Inherits Reference < Object

Debug mode configuration and frame logging support

Constants

Log = ::Log.for("ht2.debug")

Logger instance for HT2 debug output

Class methods

config

Get current configuration

Source
disable

Disable debug mode

Source
enable(config : Config | Nil = nil) : Nil

Enable debug mode with optional configuration

Source
enabled?

Check if debug mode is enabled

Source
log_frame(connection_id : String, direction : Direction, frame : Frame, stream_id : UInt32 | Nil = nil) : Nil

Log a frame with direction and connection info

Source
log_raw_frame(connection_id : String, direction : Direction, bytes : Bytes) : Nil

Log raw frame bytes

Source

Nested types