Lines Matching refs:scheme
137 def urlparse(url, scheme='', allow_fragments=True): argument
143 tuple = urlsplit(url, scheme, allow_fragments)
144 scheme, netloc, url, query, fragment = tuple
145 if scheme in uses_params and ';' in url:
149 return ParseResult(scheme, netloc, url, params, query, fragment)
168 def urlsplit(url, scheme='', allow_fragments=True): argument
175 key = url, scheme, allow_fragments, type(url), type(scheme)
185 scheme = url[:i].lower()
196 v = SplitResult(scheme, netloc, url, query, fragment)
208 scheme, url = url[:i].lower(), rest
219 v = SplitResult(scheme, netloc, url, query, fragment)
228 scheme, netloc, url, params, query, fragment = data
231 return urlunsplit((scheme, netloc, url, query, fragment))
239 scheme, netloc, url, query, fragment = data
240 if netloc or (scheme and scheme in uses_netloc and url[:2] != '//'):
243 if scheme:
244 url = scheme + ':' + url
260 scheme, netloc, path, params, query, fragment = \
262 if scheme != bscheme or scheme not in uses_relative:
264 if scheme in uses_netloc:
266 return urlunparse((scheme, netloc, path,
270 return urlunparse((scheme, netloc, path,
277 return urlunparse((scheme, netloc, path,
300 return urlunparse((scheme, netloc, '/'.join(segments),