MCPcopy Index your code
hub / github.com/github/copilot-sdk / set_request_handler

Method set_request_handler

python/copilot/_jsonrpc.py:235–239  ·  view source on GitHub ↗
(self, method: str, handler: RequestHandler)

Source from the content-addressed store, hash-verified

233 self.notification_handler = handler
234
235 def set_request_handler(self, method: str, handler: RequestHandler):
236 if handler is None:
237 self.request_handlers.pop(method, None)
238 else:
239 self.request_handlers[method] = handler
240
241 async def _send_message(self, message: dict):
242 """Send a JSON-RPC message with a Content-Length header."""

Calls 1

popMethod · 0.80

Tested by

no test coverage detected