def application(environ, start_response):

	response_body = 'The request method was %s\n' % environ['REQUEST_METHOD']

	dict = ['%s: %s' % (key, value) for key, value in sorted(environ.items())]
	response_body += '\n'.join(dict)

	status = '200 OK'

	response_headers = [('Content-Type', 'text/plain'),
	                    ('Content-Length', str(len(response_body)))]

	start_response(status, response_headers)
	yield response_body
