substituting some manual hackery for Rack::Request methods