English 中文(简体)
Flask - Request Object
  • 时间:2024-12-22

Flask – Request Object


Previous Page Next Page  

The data from a cpent’s web page is sent to the server as a global request object. In order to process the request data, it should be imported from the Flask module.

Important attributes of request object are psted below −

    Form − It is a dictionary object containing key and value pairs of form parameters and their values.

    args − parsed contents of query string which is part of URL after question mark (?).

    Cookies − dictionary object holding Cookie names and values.

    files − data pertaining to uploaded file.

    method − current request method.

Advertisements