google-api-ruby-client/lib/google/apis/core
Janko Marohnić 0eeb3ee9f9 Recover from non-Ranged responses without rewinding
Not all IO objects know how to #rewind themselves. For example, Ruby
pipes (returned by `IO.pipe`) do implement #rewind, but they will throw
an error if you try to call it.

  rd, wr = IO.pipe
  wr.rewind # Errno::ESPIPE: Illegal seek

But we don't need to rewind and overwrite the IO object if we didn't get
the Ranged response we expected, we could instead wait out the content
that has already been downloaded, and start appending again once we
reached where we left off. This is what this commit does.
2017-06-23 11:22:37 +02:00
..
api_command.rb Allow using v2 error messages + fix to_json signature to allow arbitrary args 2017-05-19 17:16:22 -06:00
base_service.rb Add Hash support to fetch_all (#586) 2017-06-01 23:52:09 -04:00
batch.rb Remove Hurley as a dependency 2016-08-17 13:51:09 -07:00
composite_io.rb Remove Hurley as a dependency 2016-08-17 13:51:09 -07:00
download.rb Recover from non-Ranged responses without rewinding 2017-06-23 11:22:37 +02:00
hashable.rb Import refactored library. See MIGRATING.MD for details 2015-06-23 15:15:14 -07:00
http_command.rb #475, #488 -- allow raw JSON if explicitly requested, fix empty body handling & test cleanup 2017-03-31 15:26:51 -07:00
json_representation.rb Allow using v2 error messages + fix to_json signature to allow arbitrary args 2017-05-19 17:16:22 -06:00
logging.rb Import refactored library. See MIGRATING.MD for details 2015-06-23 15:15:14 -07:00
multipart.rb Remove Hurley as a dependency 2016-08-17 13:51:09 -07:00
upload.rb remove print debug 2017-04-04 17:36:46 +09:00