Package io.servicetalk.http.api
Interface HttpStreamingDeserializer<T>
- Type Parameters:
T- The type of objects to serialize.
- All Known Subinterfaces:
HttpStreamingSerializerDeserializer<T>
public interface HttpStreamingDeserializer<T>
HTTP request/response deserialization for streaming payload bodies.
-
Method Summary
Modifier and TypeMethodDescriptiondeserialize(HttpHeaders headers, Publisher<Buffer> payload, BufferAllocator allocator) default BlockingIterable<T>deserialize(HttpHeaders headers, BlockingIterable<Buffer> payload, BufferAllocator allocator) Deserialize aBlockingIterableofObjects into aBlockingIterableof typeHttpStreamingDeserializer.
-
Method Details
-
deserialize
- Parameters:
headers- TheHttpHeadersassociated with thepayload.payload- Provides theObjects to deserialize.allocator- Used to allocateBuffers if necessary during deserialization.- Returns:
- a
Publisherof typeHttpStreamingDeserializerwhich is the result of the deserialization.
-
deserialize
default BlockingIterable<T> deserialize(HttpHeaders headers, BlockingIterable<Buffer> payload, BufferAllocator allocator) Deserialize aBlockingIterableofObjects into aBlockingIterableof typeHttpStreamingDeserializer.- Parameters:
headers- TheHttpHeadersassociated with thepayload.payload- Provides theObjects to deserialize. The contents are assumed to be in memory, otherwise this method may block.allocator- Used to allocateBuffers if necessary during deserialization.- Returns:
- a
BlockingIterableof typeHttpStreamingDeserializerwhich is the result of the deserialization.
-