method
new
v1_8_7_330 -
Show latest stable
- Class:
Net::HTTPGenericRequest
new(m, reqbody, resbody, path, initheader = nil)public
No documentation available.
# File lib/net/http.rb, line 1474
def initialize(m, reqbody, resbody, path, initheader = nil)
@method = m
@request_has_body = reqbody
@response_has_body = resbody
raise ArgumentError, "HTTP request path is empty" if path.empty?
@path = path
initialize_http_header initheader
self['Accept'] ||= '*/*'
@body = nil
@body_stream = nil
end