Results for: "uri"

Protected setter for the password component v.

See also URI::Generic.password=.

Escapes ‘user:password’ v based on RFC 1738 section 3.1.

Checks the host v component for RFC2396 compliance and against the URI::Parser Regexp for :HOST.

Can not have a registry or opaque component defined, with a host component defined.

Protected setter for the host component v.

See also URI::Generic.host=.

Checks the port v component for RFC2396 compliance and against the URI::Parser Regexp for :PORT.

Can not have a registry or opaque component defined, with a port component defined.

Protected setter for the port component v.

See also URI::Generic.port=.

Checks the path v component for RFC2396 compliance and against the URI::Parser Regexp for :ABS_PATH and :REL_PATH.

Can not have a opaque component defined, with a path component defined.

Protected setter for the path component v.

See also URI::Generic.path=.

Checks the opaque v component for RFC2396 compliance and against the URI::Parser Regexp for :OPAQUE.

Can not have a host, port, user, or path component defined, with an opaque component defined.

Protected setter for the opaque component v.

See also URI::Generic.opaque=.

Returns an Array of the path split on ‘/’.

Merges a base path base, with relative path rel, returns a modified base path.

Args

oth

URI or String

Description

Calculates relative path from oth to self.

Usage

require 'uri'

uri = URI.parse('http://my.example.com/main.rbx?page=1')
uri.route_from('http://my.example.com')
#=> #<URI::Generic /main.rbx?page=1>

Args

oth

URI or String

Description

Calculates relative path to oth from self.

Usage

require 'uri'

uri = URI.parse('http://my.example.com')
uri.route_to('http://my.example.com/main.rbx?page=1')
#=> #<URI::Generic /main.rbx?page=1>

Constructs String from URI.

Returns an Array of the components defined from the COMPONENT Array.

Returns a proxy URI. The proxy URI is obtained from environment variables such as http_proxy, ftp_proxy, no_proxy, etc. If there is no proper proxy, nil is returned.

If the optional parameter env is specified, it is used instead of ENV.

Note that capitalized variables (HTTP_PROXY, FTP_PROXY, NO_PROXY, etc.) are examined, too.

But http_proxy and HTTP_PROXY is treated specially under CGI environment. It’s because HTTP_PROXY may be set by Proxy: header. So HTTP_PROXY is not used. http_proxy is not used too if the variable is case insensitive. CGI_HTTP_PROXY can be used instead.

Private method to cleanup dn from using the path component attribute.

Private method to cleanup attributes, scope, filter, and extensions from using the query component attribute.

Private setter for dn val.

Private setter for scope val.

Private setter for filter val.

Private setter for extensions val.

Checks the to v component.

Private setter for to v.

Search took: 2ms  ·  Total Results: 811