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, next
Methods inherited from interface java.util.Iterator
forEachRemaining, hasNext, remove
-
Method Details
-
trailers
Get the trailers associated with this message body. Will returnnull
until thisBlockingIterator
has been completely consumed andIterator.hasNext()
returnsfalse
. Even after consumption this method may still returnnull
if there are no trailers.- Returns:
- the trailer associated with this message
body. Will return
null
until thisBlockingIterator
has been completely consumed andIterator.hasNext()
returnsfalse
. Even after consumption this method may still returnnull
if there are no trailers.
-