MCPcopy Create free account
hub / github.com/Kaggle/docker-python / do_POST

Method do_POST

tests/test_user_session.py:25–30  ·  view source on GitHub ↗
(s)

Source from the content-addressed store, hash-verified

23 s.send_response(200)
24
25 def do_POST(s):
26 s.set_request()
27 s.send_response(200)
28 s.send_header("Content-type", "application/json")
29 s.end_headers()
30 s.wfile.write(json.dumps(s.get_response()).encode("utf-8"))
31
32class TestUserSessionClient(unittest.TestCase):
33 SERVER_ADDRESS = urlparse(os.getenv(_KAGGLE_URL_BASE_ENV_VAR_NAME, default="http://127.0.0.1:0"))

Callers

nothing calls this directly

Calls 2

set_requestMethod · 0.45
get_responseMethod · 0.45

Tested by

no test coverage detected