3
# An example of how to pass information from the command line to
4
# a WSGI app. Only applies to the native WSGI workers used by
5
# Gunicorn sync (default) workers.
7
# $ gunicorn 'alt_spec:load(arg)'
9
# Single quoting is generally necessary for shell escape semantics.
11
# This file is part of gunicorn released under the MIT license.
12
# See the NOTICE for more information.
15
def app(environ, start_response):
16
data = 'Hello, %s!\n' % arg
19
('Content-type','text/plain'),
20
('Content-Length', str(len(data)))
22
start_response(status, response_headers)