gojek/wrest

Allow default headers to be added to the uri that are then used for all requests

kaiwren opened this issue · 1 comments

base = 'http://foo.com'.to_uri(:default_headers => {
                                 'Authorization' => 'OAuth token',
                                 'Accepts' => 'application/json'
})
base['/resource'].get

Completed in a2e5257