MCPcopy Index your code
hub / github.com/chain/Core / ResponseCreator

Interface ResponseCreator

sdk/java/src/main/java/com/chain/http/Client.java:320–330  ·  view source on GitHub ↗

Defines an interface for deserializing HTTP responses into objects. @param the type of object to return

Source from the content-addressed store, hash-verified

318 * @param <T> the type of object to return
319 */
320 public interface ResponseCreator<T> {
321 /**
322 * Deserializes an HTTP response into a Java object of type T.
323 * @param response HTTP response object
324 * @param deserializer json deserializer
325 * @return an object of type T
326 * @throws ChainException
327 * @throws IOException
328 */
329 T create(Response response, Gson deserializer) throws ChainException, IOException;
330 }
331
332 /**
333 * Builds and executes an HTTP Post request.

Callers 8

mainMethod · 0.65
setupMethod · 0.65
benchMethod · 0.65
testKeyQueryMethod · 0.65
testAccountQueryMethod · 0.65
testAssetQueryMethod · 0.65
testAssetPaginationMethod · 0.65
testTransactionQueryMethod · 0.65

Implementers 5

Clientsdk/java/src/main/java/com/chain/http/
Buildersdk/java/src/main/java/com/chain/api/A
Feedsdk/java/src/main/java/com/chain/api/T
Keysdk/java/src/main/java/com/chain/api/A
ReceiverBuildersdk/java/src/main/java/com/chain/api/A

Calls

no outgoing calls

Tested by

no test coverage detected