class RestClient::RawResponse
downloaded request body.
a Tempfile object at res.file, which contains the path to the raw
In addition, if you do not use the response as a string, you can access
RestClient.get(‘http://example.com’).headers[:content_type]
headers you can:
care about is the body, but on the occassion you want to fetch the
actually one of these. 99% of the time you’re making a rest call all you
The response from RestClient on a raw request looks like a string, but is
def initialize tempfile, net_http_res, args
def initialize tempfile, net_http_res, args super net_http_res, args @file = tempfile end
def size
def size File.size file end
def to_s
def to_s @file.open @file.read end