1
0
Fork 0
mirror of https://github.com/rest-client/rest-client.git synced 2022-11-09 13:49:40 -05:00
rest-client--rest-client/lib
Andy Brody 4381e9f9cd Major breaking change: switch to keyword args.
Use keyword arguments for RestClient::Request#initialize. This means
that when you call RestClient::Request.new() it will automatically
require :url and :method. It will also raise ArgumentError for
unexpected options.

Change the API for the RestClient.get() helper methods so that they
accept a URL, possibly a body, and then *options* rather than headers.
This is the single biggest wart in the API that has been rankling for
ages.

Drop compatibility for all of the super hacky usage where options were
hidden inside the headers hash. No longer accept passing :params or
:cookies as part of the headers hash.

Also remove a few other bits of vestigial code, and remove the
not-very-useful SSLCertificateNotVerified exception.
2016-09-12 01:35:15 -04:00
..
restclient Major breaking change: switch to keyword args. 2016-09-12 01:35:15 -04:00
rest-client.rb more logical way to require the library. Closes #20 2010-04-15 17:55:36 +02:00
rest_client.rb Merge commit 'technoweenie/multipart_streaming' into prereorg 2009-08-12 12:37:21 -04:00
restclient.rb Major breaking change: switch to keyword args. 2016-09-12 01:35:15 -04:00