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

Function hello_world

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

Source from the content-addressed store, hash-verified

77
78
79async def hello_world(scope: Scope, receive: Receive, send: Send) -> None:
80 await send(
81 {
82 "type": "http.response.start",
83 "status": 200,
84 "headers": [[b"content-type", b"text/plain"]],
85 }
86 )
87 await send({"type": "http.response.body", "body": b"Hello, world!"})
88
89
90async def hello_world_json(scope: Scope, receive: Receive, send: Send) -> None:

Callers 1

appFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected