abstract fun <T : ParsedHeaderValue> findBestUserAcceptedIn(accepted: MutableList<T>, in: MutableCollection<T>): T
Given the sorted list of parsed header values the user has sent and an Iterable of acceptable values: It finds the first accepted header that matches any inside the Iterable.
Note: This method is intended for internal usage.
accepted - The sorted list of headers to find the best one.
in - The headers to match against.
Return
The first header that matched, otherwise empty if none matched