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

Function custom_subdomain

tests/test_applications.py:62–63  ·  view source on GitHub ↗
(request: Request)

Source from the content-addressed store, hash-verified

60
61
62def custom_subdomain(request: Request) -> PlainTextResponse:
63 return PlainTextResponse("Subdomain: " + request.path_params["subdomain"])
64
65
66def runtime_error(request: Request) -> None:

Callers

nothing calls this directly

Calls 1

PlainTextResponseClass · 0.90

Tested by

no test coverage detected