定义 WSGI 接口

# WSGI服务器调用
def application(environ,start_response):
    start_response('200 OK',[('Content-Type','text/html')])
    return 'Hello World'
'''
environ: 包含HTTP请求信息的dict对象
start_response: 发送HTTP响应的函数
'''

2020-05-07

原文地址:https://www.cnblogs.com/hany-postq473111315/p/12845080.html