def view_with_header(request):
    response = HttpResponse()
    response['X-DJANGO-TEST'] = 'Slartibartfast'
    return response
A view that has a custom header
dataset/ETHPy150Open django/django/tests/test_client/views.py/view_with_header