title: How to set limit-rate option in Curb gem?
body: <p>I'd like to set <code>--limit-rate</code> option for downloads done by Curb gem (ruby interface to curl).</p>
  
  <p>In curl:</p>
  
  <pre><code>curl --limit-rate 10K http://server/large_file.rar
  </code></pre>
  
  <p>For downloads by Curb I have this code (plus progressbar, but that's not relevant to this question):</p>
  
  <pre><code>require 'rubygems'
  require 'curb'
  
  request = 'http://server/large_file.rar'    
  filename = 'large_file.rar'
  
  f = open(filename, 'wb')
  
  c = Curl::Easy.new(request) do |curl|    
    curl.on_body { |d| f &lt;&lt; d; d.length }
  end
  
  c.perform
  
  f.close
  </code></pre>
  
  <p>How do I set <code>--limit-rate</code> option in this script? As long as I can tell, there's no easy way (I've already read rdoc and done some googling).</p>