I am looking to refuse connections from inside a rack app. Now I currently do this in a middleware (lowest level) by simply checking:
env['REQUEST_METHOD']
and if it one I don't desire I pass back either a 301 or a 404 etc... However I was wondering if there was a lower level mechanism for doing the same thing within rack itself? I know that this could/should be done at the firewall level but as I am deployed on Heroku I don't have access to such niceties and am thus attempting to implement this at as lower level as possible.
All help and advice appreciated :)
Roja