public class HttpUtil extends Object
| Constructor and Description |
|---|
HttpUtil() |
| Modifier and Type | Method and Description |
|---|---|
static org.apache.http.client.methods.CloseableHttpResponse |
post(String url,
String dat,
org.apache.http.entity.ContentType type) |
static String |
readHttpResponse(org.apache.http.HttpResponse response) |
static void |
safeClose(org.apache.http.client.methods.CloseableHttpResponse o) |
public static org.apache.http.client.methods.CloseableHttpResponse post(String url, String dat, org.apache.http.entity.ContentType type) throws Exception
Exceptionpublic static String readHttpResponse(org.apache.http.HttpResponse response) throws IOException
IOExceptionpublic static void safeClose(org.apache.http.client.methods.CloseableHttpResponse o)
Copyright © 2023. All rights reserved.