Class: FitApi::Router::Request
- Inherits:
-
Rack::Request
- Object
- Rack::Request
- FitApi::Router::Request
- Defined in:
- lib/fit_api/router/route.rb
Instance Method Summary collapse
Instance Method Details
#headers ⇒ Object
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 |