MCPcopy
hub / github.com/sanic-org/sanic / sample

Function sample

tests/test_requests.py:2201–2202  ·  view source on GitHub ↗
(request)

Source from the content-addressed store, hash-verified

2199def test_url_for_without_server_name(app):
2200 @app.route("/sample")
2201 def sample(request):
2202 return json({"url": request.url_for("url_for")})
2203
2204 @app.route("/url-for")
2205 def url_for(request):

Callers

nothing calls this directly

Calls 2

jsonFunction · 0.90
url_forMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…