Module: Net

Defined in:
lib/aliyun/oss/extensions.rb

Overview

When streaming data up, Net::HTTPGenericRequest hard codes a chunk size of 1k. For large files this is an unfortunately low chunk size, so here we make it use a much larger default size and move it into a method so that the implementation of send_request_with_body_stream doesn’t need to be changed to change the chunk size (at least not anymore than I’ve already had to…).

Defined Under Namespace

Classes: HTTP, HTTPGenericRequest