Class: S3::Request

Inherits:
Net::HTTPGenericRequest
  • Object
show all
Defined in:
lib/s3/request.rb

Overview

Class responsible for sending chunked requests properly. Net::HTTPGenericRequest has hardcoded chunk_size, so we inherit the class and override chunk_size.

Instance Method Summary (collapse)

Constructor Details

- (Request) initialize(chunk_size, m, reqbody, resbody, path, initheader = nil)



6
7
8
9
# File 'lib/s3/request.rb', line 6

def initialize(chunk_size, m, reqbody, resbody, path, initheader = nil)
  @chunk_size = chunk_size
  super(m, reqbody, resbody, path, initheader)
end