MCPcopy
hub / github.com/encode/httpx / hello_world_json

Function hello_world_json

tests/conftest.py:90–98  ·  view source on GitHub ↗
(scope: Scope, receive: Receive, send: Send)

Source from the content-addressed store, hash-verified

88
89
90async def hello_world_json(scope: Scope, receive: Receive, send: Send) -> None:
91 await send(
92 {
93 "type": "http.response.start",
94 "status": 200,
95 "headers": [[b"content-type", b"application/json"]],
96 }
97 )
98 await send({"type": "http.response.body", "body": b'{"Hello": "world!"}'})
99
100
101async def slow_response(scope: Scope, receive: Receive, send: Send) -> None:

Callers 1

appFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected