def check_headers(request):
 return HttpResponse(('HTTP_X_ARG_CHECK: %s' % request.META.get('HTTP_X_ARG_CHECK', 'Undefined')))

def check_headers ( request ) : return HttpResponse ( ( 'HTTP_X_ARG_CHECK: %s' % request . META . get ( 'HTTP_X_ARG_CHECK' , 'Undefined' ) ) )
a view that responds with value of the x-arg-check header .