Moving header parsing static functions to AbstractMessage so that they are more accesible to request and response objects