Class: Sndacs::Request
- Inherits:
-
Net::HTTPGenericRequest
- Object
- Net::HTTPGenericRequest
- Sndacs::Request
- Defined in:
- lib/sndacs/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.
7 8 9 10 11 |
# File 'lib/sndacs/request.rb', line 7 def initialize(chunk_size, m, reqbody, resbody, path, initheader = nil) @chunk_size = chunk_size super(m, reqbody, resbody, path, initheader) end |