table of Contents
@
1. Description
It is a protocol WSGI
WSGI below
process browser requests a dynamic page follows
2. Code
Python WSGI in the key code to achieve the following
env interaction data is used
dealHeaders function is used to process the header information, i.e. body before returning to the header information processing
def application(env, dealHeaders):
status = "200 OK"
headers = [("Content-type", "text/html")]
dealHeaders(status, headers)
body = time.ctime()
return body
About the Author
Personal blog site
personal GitHub address
individual public number: