T - The type of objects to deserialize.public interface HttpDeserializer2<T>
| Modifier and Type | Method and Description |
|---|---|
T |
deserialize(HttpHeaders headers,
BufferAllocator allocator,
Buffer payload)
Deserialize a single
Object into a T. |
T deserialize(HttpHeaders headers, BufferAllocator allocator, Buffer payload)
Object into a T.headers - The HttpHeaders associated with the payload.allocator - Used to allocate intermediate Buffers if required.payload - The Object to deserialize. The contents are assumed to be in memory, otherwise this method
may block.