# File lib/dragonfly/app.rb, line 130
    def url_for(job, opts={})
      opts = opts.dup
      host = opts.delete(:host) || url_host
      suffix = opts.delete(:suffix) || url_suffix
      suffix = suffix.call(job) if suffix.respond_to?(:call)
      path_prefix = opts.delete(:path_prefix) || url_path_prefix
      path = "#{host}#{path_prefix}#{job.to_path}#{suffix}"
      query = opts
      query.merge!(server.required_params_for(job)) if protect_from_dos_attacks
      path << "?#{Rack::Utils.build_query(query)}" if query.any?
      path
    end