]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/commitdiff
httputil: document 'headers' option to get_* methods
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Fri, 14 Sep 2007 21:56:15 +0000 (21:56 +0000)
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Fri, 14 Sep 2007 21:56:15 +0000 (21:56 +0000)
lib/rbot/core/utils/httputil.rb

index 3a267da121fc9328ef2898516252b6602ff142ce..0bc579b162e7791043034339196544e602448311 100644 (file)
@@ -433,6 +433,8 @@ class HttpUtil
   # range::      make a ranged request (usually GET). accepts a string
   #              for HTTP/1.1 "Range:" header (i.e. "bytes=0-1000")
   # body::       request body (usually for POST requests)
+  # headers::    additional headers to be set for the request. Its value must
+  #              be a Hash in the form { 'Header' => 'value' }
   #
   def get_response(uri_or_s, options = {}, &block) # :yields: resp
     uri = uri_or_s.kind_of?(URI) ? uri_or_s : URI.parse(uri_or_s.to_s)