Python--WSGI protocol

First, the concept of WSGI protocol
1. What is the WSGI protocol:
WSGI (Web Server Gateway Interface): Python web server gateway interface.
2. Function:
It can be well separated from the web framework and the web server. That is to say, the server only needs to connect with the client, and the specific business logic code is completed by the framework! That way they can do their jobs.

Second, define the WSGI interface
Defining the WSGI interface is very simple, you only need to implement a method in the framework to respond to HTTP requests! The specific implementation is as follows:

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324676825&siteId=291194637