18 Mar How to access request headers in a Rack middleware application? (Rails, Sinatra, etc)
Accessing request headers in a Rack middleware is primarily done through the env hash, either directly or by wrapping it in a Rack::Request object for convenience and more Ruby-like access patterns....