fulltext/routes.py
def best_match(available: List[str], default: str) -> str:
    """Determine best content type given Accept header and available types."""
    if 'Accept' not in request.headers:
        return default
    ctype: str = request.accept_mimetypes.best_match(available)
    return ctype
Determine best content type given Accept header and available types.
Determine best content type given Accept header and available types.
Determine best content type given Accept header and available types .
def best_match(available: List[str], default: str) -> str:
    if 'Accept' not in request.headers:
        return default
    ctype: str = request.accept_mimetypes.best_match(available)
    return ctype
def best_match ( available : List [ str ] , default : str ) -> str : if 'Accept' not in request . headers : return default ctype : str = request . accept_mimetypes . best_match ( available ) return ctype
Determine best content type given Accept header and available types.
Determine best content type given Accept header and available types .
"""Determine best content type given Accept header and available types."""
available
List[str]
default
str