title: Is Content-length the only way to know when the HTTP message is completely received?
body: <p>I was generally considering writing a protocol for my own purposes over TCP and hit the problem of determining the end of the message.</p>
  
  <p>Deriving from HTTP, I could see that the message length is mentioned in Content-length and could be the method of determining that the message has been completely received. Is that the only way to do this ? What will happen if this header is missing, since AFAIK the headers are optional in a HTTP message.</p>
  
  <p>Thanks.</p>