public
Rubygem
Description: Makes http fun! Also, makes consuming restful web services dead easy.
Homepage:
Clone URL: git://github.com/jnunemaker/httparty.git
Click here to lend your support to: httparty and make a donation at www.pledgie.com !
Added doco for various request options.
evri (author)
Fri Sep 19 16:32:03 -0700 2008
jnunemaker (committer)
Fri Oct 24 21:35:10 -0700 2008
commit  caee477d0c143b0a0c63a09d253e1669bf34db7d
tree    c9fea5552688119a59cb61328bbaf81988bc7496
parent  a279df8f703f40f6717ce9aa3af46b4257d99e28
...
43
44
45
 
 
 
 
 
 
 
 
 
 
 
 
 
 
46
47
48
...
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
0
@@ -43,6 +43,20 @@ That works and all but what if you don't want to embed your username and passwor
0
   
0
   Twitter.new('username', 'password').post("It's an HTTParty and everyone is invited!")
0
 
0
+=== REQUEST OPTIONS
0
+
0
+Each of the HTTP method (get, post, put and delete) each take a hash of options.
0
+The following keys can be specified in the options:
0
+
0
+headers::       A <tt>Hash</tt> of header key/value pairs
0
+query::         A <tt>Hash</tt> of query key/value pairs
0
+body::          The body of the request. If it's a <tt>Hash</tt>, it is
0
+                converted into query-string format, otherwise it is sent
0
+                as-is.
0
+basic_auth::    A <tt>Hash</tt> containing keys for <tt>:username</tt> and
0
+                <tt>:password</tt>.
0
+no_follow::     Turns off automatic redirect following
0
+
0
 == REQUIREMENTS:
0
 
0
 * Active Support >= 2.1

Comments