select_header_accept#

static ApiClient.select_header_accept(accepts)#

Return a correctly formatted Accept header value from the provided array of accepted content types.

Parameters:
acceptsList[str], optional

List of accepted content types.

Examples

>>> ApiClient.select_header_accept(['Application/JSON', 'text/xml'])
'application/json, text/xml'