• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.10/ruby-106/ruby/lib/

Lines Matching refs:URI

18   # URI.parse.  If the parsed object responds to the 'open' method,
23 # OpenURI::OpenRead#open provides URI::HTTP#open, URI::HTTPS#open and
24 # URI::FTP#open, Kernel#open.
33 (uri = URI.parse(name)).respond_to?(:open)
57 # p f.base_uri # <URI::HTTP:0x40e6ef2 URL:http://www.ruby-lang.org/en/>
82 # URI objects can be opened in a similar way.
84 # uri = URI.parse("http://www.ruby-lang.org/en/")
89 # URI objects can be read directly. The returned string is also extended by
131 uri = URI::Generic === name ? name : URI.parse(name)
197 opt_proxy = URI.parse(opt_proxy)
199 when URI::Generic
216 # URI. It is converted to absolute URI using uri as a base URI.
226 # send authentication only for the URI directly specified.
256 raise "Non-HTTP proxy URI: #{proxy_uri}" if proxy_uri.class != URI::HTTP
269 if URI::HTTP === target
292 if target.class == URI::HTTPS
347 loc_uri = URI.parse(resp['location'])
348 rescue URI::InvalidURIError
349 raise OpenURI::HTTPError.new(io.status.join(' ') + ' (Invalid Location URI)', io)
422 # returns a URI that is the base of relative URIs in the data.
423 # It may differ from the URI supplied by a user due to redirection.
538 # OpenURI::OpenRead#open provides `open' for URI::HTTP and URI::FTP.
564 # :proxy => URI.parse("http://proxy.foo.com:8000/")
569 # If :proxy option is specified, the value should be String, URI,
572 # When String or URI is given, it is treated as proxy URI.
586 # [URI.parse("http://proxy.foo.com:8000/"),
590 # elements. It should contain a proxy URI, a proxy user name and a proxy
591 # password. The proxy URI should be a String, an URI or nil. The proxy
594 # If nil is given for the proxy URI, this option is just ignored.
706 module URI