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



7
# File 'lib/gh/response_x_header_formatter.rb', line 7

def request(env); end

#response(env) ⇒ Object



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

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