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

Function app

tests/live_apps/data_app.py:8–19  ·  view source on GitHub ↗
(request: Request)

Source from the content-addressed store, hash-verified

6
7@Request.application
8def app(request: Request) -> Response:
9 return Response(
10 json.dumps(
11 {
12 "environ": request.environ,
13 "form": request.form.to_dict(),
14 "files": {k: v.read().decode() for k, v in request.files.items()},
15 },
16 default=lambda x: str(x),
17 ),
18 content_type="application/json",
19 )

Callers

nothing calls this directly

Calls 4

ResponseClass · 0.90
to_dictMethod · 0.80
readMethod · 0.45
itemsMethod · 0.45

Tested by

no test coverage detected