Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
337
def
http_endpoint(request: Request) -> Response:
338
url = request.url_for(
"http_endpoint"
)
339
return
Response(f
"URL: {url}"
, media_type=
"text/plain"
)
340
341
342
class
WebSocketEndpoint:
Callers
nothing calls this directly
Calls
2
Response
Class · 0.90
url_for
Method · 0.45
Tested by
no test coverage detected