public class Put extends Object
| 构造器和说明 |
|---|
Put() |
| 限定符和类型 | 方法和说明 |
|---|---|
static HttpResponse |
doPut(@NotNull String url,
@Nullable byte[] body,
@Nullable okhttp3.MediaType contentType)
put同步请求
|
static HttpResponse |
doPut(@NotNull String url,
@Nullable okhttp3.Headers headers,
@Nullable byte[] body,
@Nullable okhttp3.MediaType contentType)
put同步请求
|
static HttpResponse |
doPut(@NotNull String url,
@Nullable okhttp3.Headers headers,
@Nullable byte[] body,
@Nullable okhttp3.MediaType contentType,
@Nullable ClientConfig clientConfig)
put同步请求
|
static void |
doPutAsync(@NotNull String url,
@Nullable byte[] body,
@Nullable okhttp3.MediaType contentType,
@NotNull HttpCallback httpCallback)
put异步请求
|
static void |
doPutAsync(@NotNull String url,
@Nullable okhttp3.Headers headers,
@Nullable byte[] body,
@Nullable okhttp3.MediaType contentType,
@Nullable ClientConfig clientConfig,
@NotNull okhttp3.Callback callback)
put异步请求(okhttp3 原生异步)
|
static void |
doPutAsync(@NotNull String url,
@Nullable okhttp3.Headers headers,
@Nullable byte[] body,
@Nullable okhttp3.MediaType contentType,
@Nullable ClientConfig clientConfig,
@NotNull HttpCallback httpCallback)
put异步请求
|
static void |
doPutAsync(@NotNull String url,
@Nullable okhttp3.Headers headers,
@Nullable byte[] body,
@Nullable okhttp3.MediaType contentType,
@NotNull HttpCallback httpCallback)
put异步请求
|
public static HttpResponse doPut(@NotNull @NotNull String url, @Nullable @Nullable byte[] body, @Nullable @Nullable okhttp3.MediaType contentType) throws IOException
url - 请求地址body - 请求体contentType - 内容类型IOExceptionpublic static HttpResponse doPut(@NotNull @NotNull String url, @Nullable @Nullable okhttp3.Headers headers, @Nullable @Nullable byte[] body, @Nullable @Nullable okhttp3.MediaType contentType) throws IOException
url - 请求地址headers - 请求头body - 请求体contentType - 内容类型IOExceptionpublic static HttpResponse doPut(@NotNull @NotNull String url, @Nullable @Nullable okhttp3.Headers headers, @Nullable @Nullable byte[] body, @Nullable @Nullable okhttp3.MediaType contentType, @Nullable @Nullable ClientConfig clientConfig) throws IOException
url - 请求地址headers - 请求头body - 请求体contentType - 内容类型clientConfig - 连接器配置IOExceptionpublic static void doPutAsync(@NotNull
@NotNull String url,
@Nullable
@Nullable byte[] body,
@Nullable
@Nullable okhttp3.MediaType contentType,
@NotNull
@NotNull HttpCallback httpCallback)
url - 请求地址body - 请求体contentType - 内容类型httpCallback - 异步callbackpublic static void doPutAsync(@NotNull
@NotNull String url,
@Nullable
@Nullable okhttp3.Headers headers,
@Nullable
@Nullable byte[] body,
@Nullable
@Nullable okhttp3.MediaType contentType,
@NotNull
@NotNull HttpCallback httpCallback)
url - 请求地址headers - 请求头body - 请求体contentType - 内容类型httpCallback - 异步callbackpublic static void doPutAsync(@NotNull
@NotNull String url,
@Nullable
@Nullable okhttp3.Headers headers,
@Nullable
@Nullable byte[] body,
@Nullable
@Nullable okhttp3.MediaType contentType,
@Nullable
@Nullable ClientConfig clientConfig,
@NotNull
@NotNull HttpCallback httpCallback)
url - 请求地址headers - 请求头body - 请求体contentType - 内容类型clientConfig - 连接器配置httpCallback - 异步callbackpublic static void doPutAsync(@NotNull
@NotNull String url,
@Nullable
@Nullable okhttp3.Headers headers,
@Nullable
@Nullable byte[] body,
@Nullable
@Nullable okhttp3.MediaType contentType,
@Nullable
@Nullable ClientConfig clientConfig,
@NotNull
@NotNull okhttp3.Callback callback)
url - 请求地址headers - 请求头body - 请求体contentType - 内容类型clientConfig - 连接器配置callback - 异步callbackCopyright © 2020. All rights reserved.