Header assuming readHeaderHttp functionality
Some refactorings