WSGI Protocol: Role: Specifies how the server sends messages to the framework and how the framework sends message implementations to the server:#The function name application is stipulated in the WSGI agreement and must be the name of the function. #environ: The data that the server sends to the framework (the file name that needs to be displayed in the browser) #Start_response: The data that the framework sends to the server (the response header). is a function reference defapplication (environ,start_response)#when calling Start_response (), arguments are passed to the place where the function is defined (any function, even if the defined function and the calling function are no longer in the same module), so that the defined function can hold the arguments when the function is called (the case is the method defined in the class, saved with self) Start_responese (response header 1, Response header 2,...) returnResponse body
018.1-?mini_web Framework explained _01