Class: FitApi::Router::Request

Inherits:
Rack::Request
  • Object
show all
Defined in:
lib/fit_api/router/route.rb

Instance Method Summary collapse

Instance Method Details

#headersObject



9
10
11
12
# File 'lib/fit_api/router/route.rb', line 9

def headers
  env.select { |k,v| k.start_with? "HTTP_"}.
    transform_keys { |k| k.sub(/^HTTP_/, "").split("_").map(&:capitalize).join("-") }
end