19 lines
609 B
Python
19 lines
609 B
Python
def application(environ, start_response):
|
|
"""
|
|
Function application - Wrapper to process wsgi request
|
|
:param environ: contains information on the wsgi environment
|
|
:type environ: dict
|
|
:param start_response: function to process response header by the wsgi server
|
|
:type start_response: function
|
|
:return: response to be sent to the client by the wsgi server
|
|
:rtype: list
|
|
|
|
:version: VVVVV
|
|
"""
|
|
|
|
from cgi import FieldStorage
|
|
|
|
form = FieldStorage(fp=environ['wsgi.input'], environ=environ)
|
|
|
|
start_response('200 OK', [('Content-Type', 'text/html')])
|
|
return [form] |