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

Method do_GET

Lib/test/test_urllib2_localnet.py:267–278  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

265 pass
266
267 def do_GET(self):
268 (scm, netloc, path, params, query, fragment) = urllib.parse.urlparse(
269 self.path, "http")
270 self.short_path = path
271 if self.digest_auth_handler.handle_request(self):
272 self.send_response(200, "OK")
273 self.send_header("Content-Type", "text/html")
274 self.end_headers()
275 self.wfile.write(bytes("You've reached %s!<BR>" % self.path,
276 "ascii"))
277 self.wfile.write(b"Our apologies, but our server is down due to "
278 b"a sudden zombie invasion.")
279
280# Test cases
281

Callers

nothing calls this directly

Calls 5

send_responseMethod · 0.80
send_headerMethod · 0.80
handle_requestMethod · 0.45
end_headersMethod · 0.45
writeMethod · 0.45

Tested by

no test coverage detected