You are making a big deal out of nothing. Skip empty lines in front of a request and after its content, look for tabs&#x2F;spaces after \n for multiline headers and that&#x27;s it, your HTTP parser is ok. No point in parsing comments. And it&#x27;s not wrong, it&#x27;s just not RFC compliant. In this case it would even be wrong to comply with RFC.<p>Actually, we&#x27;ve been parsing human writable text for half of a century. It&#x27;s kind of a solved problem. We have good enough tools and DSLs to make binary protocols much harder to deal with.