-
- All Implemented Interfaces:
-
io.ably.lib.http.HttpCore.BodyHandler
public class Serialisation.HttpBodyHandler<T> implements HttpCore.BodyHandler<T>
-
-
Constructor Summary
Constructors Constructor Description Serialisation.HttpBodyHandler(Class<Array<T>> klass, Serialisation.FromJsonElement<T> converter)Serialisation.HttpBodyHandler()If the target type extends JsonElement, we don't need to convert JsonElements toit.
-
Method Summary
Modifier and Type Method Description Array<T>handleResponseBody(String contentType, Array<byte> body)-
-
Constructor Detail
-
Serialisation.HttpBodyHandler
Serialisation.HttpBodyHandler(Class<Array<T>> klass, Serialisation.FromJsonElement<T> converter)
-
Serialisation.HttpBodyHandler
Serialisation.HttpBodyHandler()
If the target type extends JsonElement, we don't need to convert JsonElements toit.
-
-
Method Detail
-
handleResponseBody
Array<T> handleResponseBody(String contentType, Array<byte> body)
-
-
-
-