change the interface of chunked-encoding decdoer, so that apps can consume the data before seeing the end of stream