MCPcopy
hub / github.com/modelcontextprotocol/python-sdk / _response_status

Function _response_status

tests/server/test_sse_security.py:231–233  ·  view source on GitHub ↗
(sent: list[Message])

Source from the content-addressed store, hash-verified

229
230
231def _response_status(sent: list[Message]) -> int:
232 response_start = next(msg for msg in sent if msg["type"] == "http.response.start")
233 return response_start["status"]
234
235
236async def _post_message(transport: SseServerTransport, session_id: str, user: AuthenticatedUser | None) -> int:

Calls

no outgoing calls

Tested by

no test coverage detected