MCPcopy Index your code
hub / github.com/python/cpython / _parse

Method _parse

Lib/urllib/request.py:342–348  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

340 self.data = None
341
342 def _parse(self):
343 self.type, rest = _splittype(self._full_url)
344 if self.type is None:
345 raise ValueError("unknown url type: %r" % self.full_url)
346 self.host, self.selector = _splithost(rest)
347 if self.host:
348 self.host = unquote(self.host)
349
350 def get_method(self):
351 """Return a string indicating the HTTP request method."""

Callers 2

full_urlMethod · 0.95
_call_parseMethod · 0.45

Calls 3

_splittypeFunction · 0.90
_splithostFunction · 0.90
unquoteFunction · 0.90

Tested by

no test coverage detected