<PackageReference Include="Refit" Version="16.1.0" />

Refit.IStreamingContentSerializer

public interface IStreamingContentSerializer
An optional capability for an IHttpContentSerializer that can deserialize a response body incrementally into an IAsyncEnumerable<T>. Refit uses this for interface methods that return IAsyncEnumerable<T>, reading items as they arrive instead of buffering the whole response.
IAsyncEnumerable<T> DeserializeStreamAsync<T>(Stream stream, StreamingContentFormat format, CancellationToken cancellationToken = default)

Deserializes a response stream into a sequence of T values.