public class OkHttpUtils extends AbstractHttpUtils implements HttpUtils
限定符和类型 | 类和说明 |
---|---|
static class |
OkHttpUtils.StreamBody |
_bodyRaw, _charset, _cookies, _enablePrintln, _files, _headers, _multipart, _params, _proxy, _serializer, _timeout, _url
构造器和说明 |
---|
OkHttpUtils(OkHttpUtilsFactory factory,
java.lang.String url) |
限定符和类型 | 方法和说明 |
---|---|
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, execAsTextStream, execAsync, get, getAs, getRequestCookieString, head, header, headerAdd, headers, headers, multipart, options, patch, patchAs, post, postAs, proxy, 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, execAsTextStream, execAsync, get, getAs, head, header, headerAdd, headers, headers, http, http, http, multipart, options, patch, patchAs, post, post, postAs, postAs, proxy, proxy, put, putAs, serializer, serializer, timeout, timeout, toQueryString, toQueryString, urlEncode, urlEncode, userAgent
public OkHttpUtils(OkHttpUtilsFactory factory, java.lang.String url)
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