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

Class HTTPHandler

tests/test_google_generativeai_patch_disabled.py:10–21  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8from http.server import BaseHTTPRequestHandler, HTTPServer
9
10class HTTPHandler(BaseHTTPRequestHandler):
11 called = False
12
13 def do_HEAD(self):
14 self.send_response(200)
15
16 def do_GET(self):
17 print('YO MOD', self.path)
18 HTTPHandler.called = True
19 self.send_response(200)
20 self.send_header("Content-type", "application/json")
21 self.end_headers()
22
23class TestGoogleGenerativeAiPatchDisabled(unittest.TestCase):
24 http_endpoint = "http://127.0.0.1:80"

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected