Method: URI::HTTP#initialize
- Defined in:
- lib/uri/http.rb
#initialize(*arg) ⇒ HTTP
Description
Create a new URI::HTTP object from generic URI components as per RFC 2396. No HTTP-specific syntax checking (as per RFC 1738) is performed.
Arguments are scheme, userinfo, host, port, registry, path, opaque, query and fragment, in that order.
Example:
uri = URI::HTTP.new('http', nil, "www.example.com", nil, "/path",
"query", 'fragment')
See also URI::Generic.new
83 84 85 |
# File 'lib/uri/http.rb', line 83 def initialize(*arg) super(*arg) end |