getallheaders function to be local to the class
Merge pull request #386 from petermolnar/master

getallheaders function to be local to the class