public interface HttpExecutor
| Modifier and Type | Method and Description |
|---|---|
<K> K |
executeGet(String host,
String path,
Map<String,String> paramObject,
Class<K> returnType)
get method only support param type of Map
|
<T,K> K |
executePost(String host,
String path,
T paramObject,
Class<K> returnType)
Execute post k.
|
<T,K> K |
executePut(String host,
String path,
T paramObject,
Class<K> returnType)
Execute put k.
|
<T,K> K executePost(String host, String path, T paramObject, Class<K> returnType) throws IOException
T - the type parameterK - the type parameterhost - the hostpath - the pathparamObject - the param objectreturnType - the return typeIOException - the io exception<K> K executeGet(String host, String path, Map<String,String> paramObject, Class<K> returnType) throws IOException
K - the type parameterhost - the hostpath - the pathparamObject - the param objectreturnType - the return typeIOException - the io exception<T,K> K executePut(String host, String path, T paramObject, Class<K> returnType) throws IOException
T - the type parameterK - the type parameterhost - the hostpath - the pathparamObject - the param objectreturnType - the return typeIOException - the io exceptionCopyright © 2023 Seata. All rights reserved.