callback is an lambda function with an argument response and with return value result of the method middleware.process_response,
callback = lambda response : middleware . process_response ( request , response )