Package io.servicetalk.http.api
Interface HttpMessageBodyIterator<T>
- Type Parameters:
T- The type of payload body.
- All Superinterfaces:
AutoCloseable,BlockingIterator<T>,CloseableIterator<T>,Iterator<T>
-
Method Summary
Methods inherited from interface io.servicetalk.concurrent.BlockingIterator
close, hasNext, next, nextMethods inherited from interface java.util.Iterator
forEachRemaining, hasNext, remove
-
Method Details
-
trailers
Get the trailers associated with this message body. Will returnnulluntil thisBlockingIteratorhas been completely consumed andIterator.hasNext()returnsfalse. Even after consumption this method may still returnnullif there are no trailers.- Returns:
- the trailer associated with this message
body. Will return
nulluntil thisBlockingIteratorhas been completely consumed andIterator.hasNext()returnsfalse. Even after consumption this method may still returnnullif there are no trailers.
-