method

new

Importance_1
Ruby latest stable (v2_5_5) - 0 notes - Class: URI::HTTP

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v1_9_3_392) is shown here.

These similar methods exist in v2_5_5:

new(*arg) public

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

Show source
Register or log in to add new notes.