Class: Net::HTTPGenericRequest

Inherits:
Object
  • Object
show all
Defined in:
lib/awsum/net_fix.rb

Constant Summary collapse

@@local_read_size =
1024 * 16

Instance Method Summary collapse

Instance Method Details

#exec(sock, ver, path, limit = nil) ⇒ Object

Added limit which can be one of :headers or :body to limit the sending of a request to either the headers or the body in order to make use of 100-continue processing for S3



18
19
20
21
22
23
24
25
26
# File 'lib/awsum/net_fix.rb', line 18

def exec(sock, ver, path, limit = nil)   #:nodoc: internal use only
  if @body
    send_request_with_body sock, ver, path, @body, limit
  elsif @body_stream
    send_request_with_body_stream sock, ver, path, @body_stream, limit
  else
    write_header sock, ver, path
  end
end