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

Function application

examples/upload.py:28–34  ·  view source on GitHub ↗
(environ, start_response)

Source from the content-addressed store, hash-verified

26
27
28def application(environ, start_response):
29 req = Request(environ)
30 if req.method == "POST":
31 resp = view_file(req)
32 else:
33 resp = upload_file(req)
34 return resp(environ, start_response)
35
36
37if __name__ == "__main__":

Callers

nothing calls this directly

Calls 3

RequestClass · 0.90
view_fileFunction · 0.85
upload_fileFunction · 0.85

Tested by

no test coverage detected