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

Class HTTPHandler

tests/test_google_generativeai_patch.py:10–24  ·  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 path = None
13 headers = {}
14
15 def do_HEAD(self):
16 self.send_response(200)
17
18 def do_GET(self):
19 HTTPHandler.path = self.path
20 HTTPHandler.headers = self.headers
21 HTTPHandler.called = True
22 self.send_response(200)
23 self.send_header("Content-type", "application/json")
24 self.end_headers()
25
26class TestGoogleGenerativeAiPatch(unittest.TestCase):
27 endpoint = "http://127.0.0.1:80"

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected