Package io.servicetalk.http.api
Interface HttpDeserializer<T>
- Type Parameters:
T
- The type of objects to deserialize.
Deprecated.
A factory to address deserialization concerns for HTTP request/response payload bodies.
-
Method Summary
Modifier and TypeMethodDescriptiondeserialize
(HttpHeaders headers, Buffer payload) Deprecated.Deserialize a singleObject
into aHttpDeserializer
.deserialize
(HttpHeaders headers, Publisher<Buffer> payload) Deprecated.deserialize
(HttpHeaders headers, BlockingIterable<Buffer> payload) Deprecated.
-
Method Details
-
deserialize
Deprecated.Deserialize a singleObject
into aHttpDeserializer
.- Parameters:
headers
- TheHttpHeaders
associated with thepayload
.payload
- TheObject
to deserialize. The contents are assumed to be in memory, otherwise this method may block.- Returns:
- The result of the deserialization.
-
deserialize
Deprecated.- Parameters:
headers
- TheHttpHeaders
associated with thepayload
.payload
- Provides theObject
s to deserialize. The contents are assumed to be in memory, otherwise this method may block.- Returns:
- a
BlockingIterable
of typeHttpDeserializer
which is the result of the deserialization.
-
deserialize
Deprecated.- Parameters:
headers
- TheHttpHeaders
associated with thepayload
.payload
- Provides theObject
s to deserialize.- Returns:
- a
Publisher
of typeHttpDeserializer
which is the result of the deserialization.
-
HttpDeserializer2
orHttpStreamingDeserializer
.