Complete the code to get the HTTP method of the request.
method = request.[1]The request.method property returns the HTTP method used (GET, POST, etc.).
Complete the code to access the query parameters from the request.
args = request.[1]The request.args property contains the URL query parameters as a dictionary-like object.
Fix the error in accessing JSON data from the request.
data = request.[1]()The correct method to parse JSON body data is request.get_json().
Fill both blanks to get a form value safely with a default.
username = request.[1].get('[2]', 'guest')
Use request.form.get('username', 'guest') to get the form field 'username' with a default value.
Fill all three blanks to check if the request method is POST and get JSON data.
if request.[1] == '[2]': data = request.[3]()
Check request.method == 'POST' and then get JSON data with request.get_json().
