| 程序包 | 说明 |
|---|---|
| cn.aghost.http.client | |
| cn.aghost.http.client.object | |
| cn.aghost.http.client.utils |
| 限定符和类型 | 方法和说明 |
|---|---|
static HttpResponse |
Delete.doDelete(String url,
byte[] body,
okhttp3.MediaType contentType)
delete同步请求
|
static HttpResponse |
Delete.doDelete(String url,
okhttp3.Headers headers,
byte[] body,
okhttp3.MediaType contentType)
delete同步请求
|
static HttpResponse |
Delete.doDelete(String url,
okhttp3.Headers headers,
byte[] body,
okhttp3.MediaType contentType,
ClientConfig clientConfig)
delete同步请求
|
static HttpResponse |
Get.doGet(String url)
执行http get请求
|
static HttpResponse |
Get.doGet(String url,
okhttp3.Headers headers)
执行http get请求
|
static HttpResponse |
Get.doGet(String url,
okhttp3.Headers headers,
ClientConfig clientConfig)
执行http get请求
|
static HttpResponse |
Post.doPost(String url,
byte[] body,
okhttp3.MediaType contentType)
post同步请求
|
static HttpResponse |
Post.doPost(String url,
okhttp3.Headers headers,
byte[] body,
okhttp3.MediaType contentType)
post同步请求
|
static HttpResponse |
Post.doPost(String url,
okhttp3.Headers headers,
byte[] body,
okhttp3.MediaType contentType,
ClientConfig clientConfig)
post同步请求
|
static HttpResponse |
Put.doPut(String url,
byte[] body,
okhttp3.MediaType contentType)
put同步请求
|
static HttpResponse |
Put.doPut(String url,
okhttp3.Headers headers,
byte[] body,
okhttp3.MediaType contentType)
put同步请求
|
static HttpResponse |
Put.doPut(String url,
okhttp3.Headers headers,
byte[] body,
okhttp3.MediaType contentType,
ClientConfig clientConfig)
put同步请求
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
HttpCallback.onSuccess(okhttp3.Call call,
HttpResponse response) |
| 限定符和类型 | 方法和说明 |
|---|---|
static HttpResponse |
BaseHttpExecutor.executeWithBody(String method,
String url,
okhttp3.Headers headers,
byte[] body,
okhttp3.MediaType contentType,
ClientConfig clientConfig)
执行同步请求
|
Copyright © 2020. All rights reserved.