Complete the code to set the Content-Type header to JSON.
headers = {"Content-Type": "[1]"}The Content-Type header tells the server the format of the data being sent. For JSON data, it should be application/json.
Complete the code to set the Accept header to expect JSON response.
headers = {"Accept": "[1]"}The Accept header tells the server what response format the client expects. For JSON responses, use application/json.
Fix the error in the header key to correctly specify Content-Type.
headers = {"[1]": "application/json"}The correct header key is Content-Type with a capital C and T and a hyphen.
Fill both blanks to set headers for sending JSON and expecting JSON response.
headers = {"[1]": "application/json", "[2]": "application/json"}Content-Type tells the server the data format sent. Accept tells the server the response format expected.
Fill all three blanks to create headers with Content-Type JSON, Accept JSON, and a custom header X-API-Key.
headers = {"[1]": "application/json", "[2]": "application/json", "[3]": "12345"}This sets Content-Type and Accept to JSON, and adds a custom X-API-Key header for authentication.