mirror of
https://github.com/frappe/gunicorn.git
synced 2026-07-01 18:21:30 +08:00
- Bump version to 25.0.2 - Update copyright year to 2026 in LICENSE and NOTICE - Add license headers to all Python source files - Add changelog entry for 25.0.2
23 lines
550 B
Python
23 lines
550 B
Python
#
|
|
# This file is part of gunicorn released under the MIT license.
|
|
# See the NOTICE for more information.
|
|
|
|
# Simple WSGI app for benchmarking
|
|
|
|
def application(environ, start_response):
|
|
"""Basic hello world response."""
|
|
path = environ.get('PATH_INFO', '/')
|
|
|
|
if path == '/large':
|
|
body = b'X' * 65536 # 64KB
|
|
else:
|
|
body = b'Hello, World!'
|
|
|
|
status = '200 OK'
|
|
headers = [
|
|
('Content-Type', 'text/plain'),
|
|
('Content-Length', str(len(body))),
|
|
]
|
|
start_response(status, headers)
|
|
return [body]
|