You can access header values from rails from the request.env hash. request.env contains a lot of other non HTTP header values. The header name is a bit transformed too:
- prepended with HTTP_
- converted to uppercase
- dashes converted to undersocres
- … more?
can be accessed in rails with: