Method: Net::HTTPGenericRequest#exec
- Defined in:
- lib/net/http/generic_request.rb
#exec(sock, ver, path) ⇒ Object
write
198 199 200 201 202 203 204 205 206 207 208 |
# File 'lib/net/http/generic_request.rb', line 198 def exec(sock, ver, path) #:nodoc: internal use only if @body send_request_with_body sock, ver, path, @body elsif @body_stream send_request_with_body_stream sock, ver, path, @body_stream elsif @body_data send_request_with_body_data sock, ver, path, @body_data else write_header sock, ver, path end end |