[erlang-questions] how: Chunked input encoding with {packet, http}

Christian S chsu79@REDACTED
Thu Mar 27 19:19:56 CET 2008

Typically, one use the http packet to get the Content-Length and then
proceed to {packet, raw} and read that number of bytes.

But how should one handle a request that comes in with an unknown
length such as a chunk encoded entity?

I don't know how much to read, and if I read, I do not seem to be able
to put data back (say if I received the beginning of the next

More information about the erlang-questions mailing list