Implemented HeaderParser middleware