parsing header variables header chunks in body