rssbbq
Last Updated: February 25, 2016
·
149
· devatotech
Avatar square

Rails only HTTP properties of request

Found a clean simple way to select only the HTTP type properties of the request object:

headers = request.env.select { |key, val| key.match("^HTTP.*")}
Say Thanks
Respond