Module methanol

Class AsyncBodyDecoder<T>

java.lang.Object
com.github.mizosoft.methanol.decoder.AsyncBodyDecoder<T>
All Implemented Interfaces:
BodyDecoder<T>, HttpResponse.BodySubscriber<T>, Flow.Subscriber<List<ByteBuffer>>

public final class AsyncBodyDecoder<T> extends Object implements BodyDecoder<T>
An implementation of BodyDecoder that uses an AsyncDecoder for decompression. The implementation disallows left-over bytes after the final source is acknowledged, completing the downstream with an IOException on such case. The decoder is closed on either normal or exceptional completion or on cancellation from downstream.