# File lib/action_controller/metal/streaming.rb, line 66
      def send_file(path, options = {}) #:doc:
        raise MissingFile, "Cannot read file #{path}" unless File.file?(path) and File.readable?(path)

        options[:filename] ||= File.basename(path) unless options[:url_based_filename]
        send_file_headers! options

        if options[:x_sendfile]
          ActiveSupport::Deprecation.warn(":x_sendfile is no longer needed in send_file", caller)
        end

        self.status = options[:status] || 200
        self.content_type = options[:content_type] if options.key?(:content_type)
        self.response_body = File.open(path, "rb")
      end