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

Function http_endpoint

tests/test_routing.py:337–339  ·  view source on GitHub ↗
(request: Request)

Source from the content-addressed store, hash-verified

335
336
337def http_endpoint(request: Request) -> Response:
338 url = request.url_for("http_endpoint")
339 return Response(f"URL: {url}", media_type="text/plain")
340
341
342class WebSocketEndpoint:

Callers

nothing calls this directly

Calls 2

ResponseClass · 0.90
url_forMethod · 0.45

Tested by

no test coverage detected