get content type from httpresponse python code example Example: httpresponse django from django.http import HttpResponse