TypedRest for TypeScript - v0.5.0
    Preparing search index...

    Function entityStream

    • Exposes the body of a Response as a stream of deserialized entities.

      Type Parameters

      • TEntity

        The type of entity the stream provides.

      Parameters

      • response: Response

        The response to read the body from.

      • serializer: Serializer

        Controls the deserialization of the entities in the body.

      • separator: string = "\n"

        The character sequence used to detect that a new entity starts in the stream.

      Returns AsyncIterableIterator<TEntity>

      A stream that ends when the server closes the connection.