Request objects - FLASK


We we work on web applications we need to send data from Client's browser to server as a request. This request is also known as global request. In flask, to order to process the request, modules needs to be imported first.

Important attributes that are present in request object are as follows −
  • 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.

Comments

Popular Posts