static public Method

HTTP.new(*arg)

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'])

Source Code

# File uri/http.rb, line 77
def initialize(*arg)
  super(*arg)
end
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.