Defining _setHeader as protected and renaming to setHeader