def get_header(self, request):
    '\n        Extracts the header containing the JSON web token from the given\n        request.\n        '
    header = request.META.get(api_settings.AUTH_HEADER_NAME)
    if isinstance(header, str):
        header = header.encode(HTTP_HEADER_ENCODING)
    return header
Extracts the header containing the JSON web token from the given
request.
def get_header(self, request):
    '\n        Extracts the header containing the JSON web token from the given\n        request.\n        '
    header = request.META.get(api_settings.AUTH_HEADER_NAME)
    if isinstance(header, str):
        header = header.encode(HTTP_HEADER_ENCODING)
    return header