Complete the code to set the media type version in the Accept header.
headers = {"Accept": "application/vnd.example.v[1]+json"}The version number in media type versioning is placed as a number after 'v' in the Accept header.
Complete the code to check if the client requested version 2 in the Accept header.
if request.headers.get('Accept') == 'application/vnd.example.v[1]+json': process_version_2()
The Accept header should match the exact version number without repeating 'v'.
Fix the error in the media type versioning string to correctly specify version 3.
media_type = "application/vnd.example.[1]+json"
The correct format includes 'v' followed immediately by the version number, like 'v3'.
Fill both blanks to create a response with version 1 media type and JSON content.
response.headers['Content-Type'] = 'application/vnd.example.[1]+[2]'
The Content-Type header must specify the version as 'v1' and the format as 'json'.
Fill all three blanks to build a media type versioning Accept header for version 4 with XML format.
accept_header = 'application/vnd.example.[1]+[2]; charset=[3]'
The Accept header includes version 'v4', format 'xml', and charset 'utf-8' for encoding.