commit 097ad5f4570d8c743e0cd7838cca58e298adca18 Author: Corder Guy Date: Fri Apr 6 00:31:31 2018 -0500 Initial commit diff --git a/mocha.py b/mocha.py new file mode 100644 index 0000000..4d0e275 --- /dev/null +++ b/mocha.py @@ -0,0 +1,12 @@ +import sys + +def application(environ, start_response): + status = '200 OK' + output = b'Sup, y\'all.\n' + + response_headers = [('Content-type', 'text/plain'), + ('Content-Length', str(len(output)))] + + start_response(status, response_headers) + + return [output]