MCPcopy
hub / github.com/encode/starlette / page_a

Function page_a

tests/test_templates.py:109–110  ·  view source on GitHub ↗
(request: Request)

Source from the content-addressed store, hash-verified

107 template_a.write_text("<html><a href='{{ url_for('page_a') }}'></a> a</html>")
108
109 async def page_a(request: Request) -> Response:
110 return templates.TemplateResponse(request, "template_a.html")
111
112 dir_b = tmp_path.resolve() / "b"
113 dir_b.mkdir()

Callers

nothing calls this directly

Calls 1

TemplateResponseMethod · 0.80

Tested by

no test coverage detected