public function parsePlainStream(PromiseInterface $promise)
    {
        // text/plain

        return Stream\unwrapReadable($promise->then(function (ResponseInterface $response) {
            return $response->getBody();
        }));
    }
public function parsePlainStream(PromiseInterface $promise)
    {
        // text/plain

        return Stream\unwrapReadable($promise->then(function (ResponseInterface $response) {
            return $response->getBody();
        }));
    }
public function parsePlainStream ( PromiseInterface $ promise ) { // text/plain return Stream \ unwrapReadable ( $ promise -> then ( function ( ResponseInterface $ response ) { return $ response -> getBody ( ) ; } ) ) ; }
Returns a readable plain text stream for the given ResponseInterface

@param PromiseInterface $promise Promise<ResponseInterface>
@return ReadableStreamInterface
Returns a readable plain text stream for the given ResponseInterface