A Requests object is the one which is created by the user when he/she tries to interact with a web resource. It will be sent as a prepared request to the server and does contain some parameters which are optional. Let us have an eagle eye view on the parameters:
Method: This is the HTTP method to be used to interact with the web service. For example: GET, POST, PUT.
URL: The web address to which the request needs to be sent.
headers: A dictionary of headers to be sent in the request.
files: This can be used while dealing with the multipart upload. It's the dictionary of files, with key as file name and value as file object.
data: This is the body to be attached to the
request.json. There are two cases ...