Resourceful - Adding default options

  • Resourceful

I just commited a change that allows you to specify some default headers to attach to all requests made on a resource. Best shown in an example, I'll use the sample code I gave in my last post:

require 'rubygems'
require 'resourceful'

http = =>,
                                     :cache_manager =>

res = http.resource("http://core.ssbe.localhost/service_desciptors",
                    :accept => 'application/json')


Just a little less typing required.