Class: S3::Request
- Inherits:
-
Net::HTTPGenericRequest
- Object
- Net::HTTPGenericRequest
- S3::Request
- 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
-
#initialize(chunk_size, m, reqbody, resbody, path, initheader = nil) ⇒ Request
constructor
A new instance of Request.
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 |