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

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

Returns a new instance of Request.



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