Open dhasenan opened 6 years ago
What you probably want is .bodyReader.readAll()
, which will read the logical body contents as untyped bytes. readRawBody
specifically circumvents any content or transfer encoding and basically requires the user to re-implement that part of the HTTP protocol in an appropriate way. .empty()
will basically operate directly on the TCP connection, so that it will return only if further data arrives, or the connection gets closed.
vibe.d 8.1.0 with dmd 2.076.0 on ubuntu 16.04.
If I call requestHTTP and try to read its body using the low-level interface, it hangs indefinitely:
Actual output:
At this point, it hangs forever. The call to
stream.empty
appears to hang forever.readAllUTF8
works somehow, but this way of doing it doesn't.