rest request and response reception has been adapted to handle chunked transfer
encoding.