Class HttpTinyClient
- java.lang.Object
-
- org.apache.eventmesh.runtime.util.HttpTinyClient
-
public class HttpTinyClient extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classHttpTinyClient.HttpResult
-
Constructor Summary
Constructors Constructor Description HttpTinyClient()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static HttpTinyClient.HttpResulthttpGet(java.lang.String url, java.util.List<java.lang.String> headers, java.util.List<java.lang.String> paramValues, java.lang.String encoding, long readTimeoutMs)static HttpTinyClient.HttpResulthttpPost(java.lang.String url, java.util.List<java.lang.String> headers, java.util.List<java.lang.String> paramValues, java.lang.String encoding, long readTimeoutMs)
-
-
-
Method Detail
-
httpGet
public static HttpTinyClient.HttpResult httpGet(java.lang.String url, java.util.List<java.lang.String> headers, java.util.List<java.lang.String> paramValues, java.lang.String encoding, long readTimeoutMs) throws java.io.IOException
- Throws:
java.io.IOException
-
httpPost
public static HttpTinyClient.HttpResult httpPost(java.lang.String url, java.util.List<java.lang.String> headers, java.util.List<java.lang.String> paramValues, java.lang.String encoding, long readTimeoutMs) throws java.io.IOException
- Returns:
- the http response of given http post request
- Throws:
java.io.IOException
-
-