MCPcopy
hub / github.com/pallets/werkzeug / dispatch

Function dispatch

tests/test_routing.py:474–477  ·  view source on GitHub ↗
(path, quiet=False)

Source from the content-addressed store, hash-verified

472 return Response(repr((endpoint, values)))
473
474 def dispatch(path, quiet=False):
475 return Response.force_type(
476 adapter.dispatch(view_func, path, catch_http_exceptions=quiet), env
477 )
478
479 assert dispatch("/").data == b"('root', {})"
480 assert dispatch("/foo").status_code == 308

Callers 1

test_dispatchFunction · 0.85

Calls 2

force_typeMethod · 0.80
dispatchMethod · 0.45

Tested by

no test coverage detected