Class: GH::ResponseXHeaderFormatter

Inherits:
Faraday::Logging::Formatter
  • Object
show all
Defined in:
lib/gh/response_x_header_formatter.rb

Instance Method Summary collapse

Instance Method Details

#request(env) ⇒ Object



5
6
# File 'lib/gh/response_x_header_formatter.rb', line 5

def request(env)
end

#response(env) ⇒ Object



8
9
10
# File 'lib/gh/response_x_header_formatter.rb', line 8

def response(env)
  info('Response') { env.response_headers.select {|k,v| k =~ /^x-/}.sort.to_h }
end