public class OkHttpUtilsImpl extends AbstractHttpUtils implements HttpUtils
限定符和类型 | 类和说明 |
---|---|
static class |
OkHttpUtilsImpl.StreamBody |
_bodyRaw, _charset, _cookies, _enablePrintln, _files, _headers, _multipart, _params, _serializer, _timeout, _url
构造器和说明 |
---|
OkHttpUtilsImpl(java.lang.String url) |
OkHttpUtilsImpl(java.lang.String url,
okhttp3.OkHttpClient client) |
限定符和类型 | 方法和说明 |
---|---|
protected HttpResponse |
execDo(java.lang.String _method,
java.util.concurrent.CompletableFuture<HttpResponse> future) |
protected java.lang.String |
urlRebuild(java.lang.String method,
java.lang.String url,
java.nio.charset.Charset charset) |
body, body, body, bodyOfBean, charset, cookie, cookieAdd, cookies, cookies, data, data, data, data, data, delete, deleteAs, enablePrintln, exec, execAsBody, execAsBody, execAsCode, execAsync, get, getAs, getRequestCookieString, head, header, headerAdd, headers, headers, multipart, options, patch, patchAs, post, postAs, put, putAs, serializer, serializer, timeout, timeout, tryInitCookies, tryInitFiles, tryInitHeaders, tryInitParams, userAgent
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
body, body, body, body, body, bodyJson, bodyOfBean, bodyOfJson, bodyOfTxt, bodyRaw, bodyRaw, bodyRaw, bodyRaw, bodyTxt, bodyTxt, charset, cookie, cookieAdd, cookies, cookies, data, data, data, data, data, data, delete, deleteAs, enablePrintln, exec, execAsBody, execAsBody, execAsCode, execAsync, get, getAs, head, header, headerAdd, headers, headers, http, http, http, multipart, options, patch, patchAs, post, post, postAs, postAs, put, putAs, serializer, serializer, timeout, timeout, toQueryString, toQueryString, urlEncode, urlEncode, userAgent
public OkHttpUtilsImpl(java.lang.String url)
public OkHttpUtilsImpl(java.lang.String url, okhttp3.OkHttpClient client)
protected HttpResponse execDo(java.lang.String _method, java.util.concurrent.CompletableFuture<HttpResponse> future) throws java.io.IOException
execDo
在类中 AbstractHttpUtils
java.io.IOException
protected java.lang.String urlRebuild(java.lang.String method, java.lang.String url, java.nio.charset.Charset charset) throws java.io.UnsupportedEncodingException
java.io.UnsupportedEncodingException