PEP 333 摘要

PEP 3333 -- Python Web Server Gateway Interface v1.0.1 http://www.python.org/dev/peps/pep-3333/  

这个文档定义了WSGI:它是一个WebServer与Python App FrameWork之间的接口规范。

问题的背景:

  • 现有很多Web Server(HTTP Server),以及很多新的Python写的Web Server
  • 现有很多Python App FrameWork,以及未来将出现的
  • Web Server 把请求送给Python App FrameWork, 用户app处理完毕后,需要将结果回送给Web Server
  • 当前的现状是:Web Server和Python App FrameWork之间没有一个标准的通信接口规范

所以WSGI的意义就清楚了。  

原文地址:https://www.cnblogs.com/ohscar/p/3109638.html