rssbbq
Last Updated: February 25, 2016
·
162
· devatotech

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.*")}