public class CallUtils extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
String |
get(String path) |
HttpUtils |
http(String path) |
String |
post(String path,
Map<String,String> data) |
String |
post(String path,
Map<String,String> data,
String trace_id) |
void |
postAsync(String path,
Map<String,String> data) |
String |
postBody(String path,
byte[] bytes,
String contentType) |
String |
postBody(String path,
String text,
String contentType) |
public CallUtils(String server)
public String post(String path, Map<String,String> data, String trace_id) throws IOException
IOExceptionpublic String post(String path, Map<String,String> data) throws IOException
IOExceptionpublic String postBody(String path, byte[] bytes, String contentType) throws IOException
IOExceptionpublic String postBody(String path, String text, String contentType) throws IOException
IOExceptionpublic String get(String path) throws IOException
IOExceptionCopyright © 2021. All rights reserved.