README.rdoc in rest-client-1.6.1 vs README.rdoc in rest-client-1.6.2.a
- old
+ new
@@ -10,11 +10,11 @@
== Usage: Raw URL
require 'rest_client'
RestClient.get 'http://example.com/resource'
-
+
RestClient.get 'http://example.com/resource', {:params => {:id => 50, 'foo' => 'bar'}}
RestClient.get 'https://user:password@example.com/private/resource', {:accept => :json}
RestClient.post 'http://example.com/resource', :param1 => 'one', :nested => { :param2 => 'two' }
@@ -135,10 +135,18 @@
require 'addressable/uri'
RestClient.get(Addressable::URI.parse("http://www.詹姆斯.com/").normalize.to_str)
== Lower-level access
-For cases not covered by the general API, you can use the RestClient::Resource class which provide a lower-level API, see the class' rdoc for more information.
+For cases not covered by the general API, you can use the RestClient::Request class which provide a lower-level API.
+
+You can:
+
+* specify ssl parameters
+* override cookies
+* manually handle the response (so you can operate on the response stream than reading it fully in memory)
+
+see the class' rdoc for more information.
== Shell
The restclient shell command gives an IRB session with RestClient already loaded: