Lines Matching refs:URI
23 # The URI which was being accessed when the exception happened.
55 # Initialize a remote fetcher using the source URI and possible proxy
83 when URI::HTTP then proxy
84 else URI.parse(proxy)
106 URI.parse "#{res.target}#{uri.path}"
147 # Always escape URI's to deal with potential spaces and such
148 unless URI::Generic === source_uri
149 source_uri = URI.parse(URI.const_defined?(:DEFAULT_PARSER) ?
150 URI::DEFAULT_PARSER.escape(source_uri.to_s) :
151 URI.escape(source_uri.to_s))
156 # URI.parse gets confused by MS Windows paths with forward slashes.
218 raise ArgumentError, "unsupported URI scheme #{source_uri.scheme}"
245 location = URI.parse response['Location']
263 uri = URI.parse uri unless URI::Generic === uri
346 URI::Parser.new
348 URI
363 # Returns an HTTP proxy URI if one is set in the environment variables.
370 uri = URI.parse(normalize_uri(env_proxy))
382 # Normalize the URI by adding "http://" if it is missing.