Interface HttpDeserializer2<T>

Type Parameters:
T - The type of objects to deserialize.
All Known Subinterfaces:
HttpSerializerDeserializer<T>

public interface HttpDeserializer2<T>
A factory to address deserialization concerns for HTTP request/response payload bodies.
  • Method Details

    • deserialize

      T deserialize(HttpHeaders headers, BufferAllocator allocator, Buffer payload)
      Deserialize a single Object into a HttpDeserializer2.
      Parameters:
      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.
      Returns:
      The result of the deserialization.