fragment=

fragment=(v) Instance Public methods Args v String Description public setter for the fragment component v. (with validation) see also URI::Generic.check_fragment Usage require 'uri' uri = URI.parse("http://my.example.com/?id=25#time=1305212049") uri.fragment = "time=1305212086" # => "time=1305212086" uri #=> #<URI::HTTP:0x000000007a81f8 URL:http://my.example.com/?id=25#time=1305212086>

find_proxy

find_proxy() Instance Public methods 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. 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 varia

eql?

eql?(oth) Instance Public methods

default_port 2

default_port() Instance Public methods Returns default port

component 2

component() Instance Public methods Components of the URI in the order.

coerce

coerce(oth) Instance Public methods Args v URI or String Description attempt to parse other URI +oth+ return [parsed_oth, self] Usage require 'uri' uri = URI.parse("http://my.example.com") uri.coerce("http://foo.com") #=> [#<URI::HTTP:0x00000000bcb028 URL:http://foo.com/>, #<URI::HTTP:0x00000000d92178 URL:http://my.example.com>]

absolute?

absolute?() Instance Public methods Checks if URI is an absolute one absolute

absolute

absolute() Instance Public methods Alias for: absolute?

==

==(oth) Instance Public methods Compares to URI's

-

-(oth) Instance Public methods Alias for: route_from