new

new(*arg)
Class Public methods

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:

1
2
uri = URI::HTTP.new('http', nil, "www.example.com", nil, "/path",
  "query", 'fragment')

See also URI::Generic.new

doc_ruby_on_rails
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.