WSGI is the Web Server Gateway Interface. It is a specification that describes how a web server communicates with web applications, and how web applications can be chained together to process one request. WSGI is a Python standard described in detail in PEP 3333.
PSR-7
PSR-7: HTTP message interfaces This document (HTTP message desribetion) describes common interfaces for representing HTTP messages as described in RFC 7230 and RFC 7231, and URIs for use with HTTP messages as described in RFC 3986.
應該能夠看出來差別了。
WSGI是一個 Web Server Gateway Interface ,也就是 伺服器網關介面 ,這玩意描述了 Web server怎麼樣和你的python cgi程式之間交流,說說話啥的,我這邊有啥任務了,你來做,做完了把結果告訴我,我告訴瀏覽器那傢伙去。