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