Allow to set headers on request object in #recognize_path

Helpful when testing routes with host/protocol constraint:
  Rails.application.routes.recognize_path('/foo/bar', :method => 'get', 'HTTPS' => 'on', HTTP_HOST => example.com)