hayesdavis / grackle

Lightweight Ruby library for the Twitter API that goes with the flow.
228 stars 36 forks source link

Added support for access to the client response. #25

Closed mando closed 12 years ago

mando commented 12 years ago

The client object now has access to the response object, which contains the following:

By default, the only response headers that will be returned are the Twitter response headers:

To add additional response headers, simply send them as an option to the client on creation:

c = Grackle::Client.new(:response_headers=>['X-My-Awesome-Header'])