Method: RequestDetailsFormatter#header_section

Defined in:
lib/dtracer/request_formatters.rb

#header_section(hash) ⇒ Object



98
99
100
101
102
# File 'lib/dtracer/request_formatters.rb', line 98

def header_section(hash)
  return nil unless @options[:h] && hash["headers"]

  hash["headers"].map { |key, value| "  #{key}: #{value}" }.insert(0, "Headers:")
end