getallheaders function to be local to the class