MCPcopy
hub / github.com/sanic-org/sanic / handler

Function handler

tests/test_vhosts.py:31–32  ·  view source on GitHub ↗
(request)

Source from the content-addressed store, hash-verified

29def test_vhosts_with_list(app):
30 @app.route("/", host=["hello.com", "world.com"])
31 async def handler(request):
32 return text("Hello, world!")
33
34 headers = {"Host": "hello.com"}
35 request, response = app.test_client.get("/", headers=headers)

Callers

nothing calls this directly

Calls 1

textFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…