018.1-?mini_web Framework explained _01

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.