Lines Matching full:scheme

14 RFC 2368: "The mailto URL scheme", by P.Hoffman , L Masinter, J. Zwinski, July 1998.
59 # Characters valid in scheme names
121 class SplitResult(namedtuple('SplitResult', 'scheme netloc path query fragment'), ResultMixin):
129 class ParseResult(namedtuple('ParseResult', 'scheme netloc path params query fragment'), ResultMixi…
137 def urlparse(url, scheme='', allow_fragments=True): argument
139 <scheme>://<netloc>/<path>;<params>?<query>#<fragment>
140 Return a 6-tuple: (scheme, netloc, path, params, query, fragment).
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
170 <scheme>://<netloc>/<path>?<query>#<fragment>
171 Return a 5-tuple: (scheme, netloc, path, query, fragment).
175 key = url, scheme, allow_fragments, type(url), type(scheme)
185 scheme = url[:i].lower()
196 v = SplitResult(scheme, netloc, url, query, fragment)
204 # "scheme" is really part of the path)
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),