entitySequence

fun <TEntity : Any> Response.entitySequence(serializer: Serializer, separatorBytes: ByteString, bufferSize: Int, entityType: Class<TEntity>): Sequence<TEntity>

Streams deserialized entities from an HTTP response body.

Parameters

serializer

Used to deserialize entities in the body.

separatorBytes

The byte sequence used to detect that a new element starts in an HTTP stream.

bufferSize

The size of the buffer used to collect data for deserialization in bytes.

entityType

The entity type this stream provides.

Type Parameters

TEntity

The entity type this stream provides.