select_header_content_type#
- static ApiClient.select_header_content_type(content_types)#
Return the preferred
Content-Type
header value from the provided array of valid content types.Notes
If more than one valid
Content-Type
is provided, the first one in the list is used.Examples
>>> ApiClient.select_header_content_type() 'application/json'
>>> ApiClient.select_header_content_type(['text/xml', 'Application/JSON']) 'text/xml'
>>> ApiClient.select_header_content_type(['*/*']) 'application/json'