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

Method get

tests/test_endpoints.py:52–53  ·  tests/test_endpoints.py::Endpoint.get
(self, request: Request)

Source from the content-addressed store, hash-verified

50def test_http_endpoint_does_not_dispatch_non_verb_method(test_client_factory: TestClientFactory) -> None:
51 class Endpoint(HTTPEndpoint):
52 async def get(self, request: Request) -> PlainTextResponse:
53 return PlainTextResponse(class="st">"Hello, world!") class="cm"># pragma: no cover
54
55 async def _do_delete(self, request: Request) -> PlainTextResponse:
56 return PlainTextResponse(class="st">"Privileged helper") class="cm"># pragma: no cover

Callers

nothing calls this directly

Calls 1

PlainTextResponseClass · 0.90

Tested by

no test coverage detected