| 构造器和说明 |
|---|
HttpUtilsImpl(String url) |
public HttpUtilsImpl(String url)
public HttpUtils enablePrintln(boolean enable)
enablePrintln 在接口中 HttpUtilspublic HttpUtils timeout(int connectTimeoutSeconds, int writeTimeoutSeconds, int readTimeoutSeconds)
public HttpUtils data(String key, String filename, InputStream inputStream, String contentType)
public HttpUtils bodyRaw(InputStream raw)
public HttpUtils bodyRaw(InputStream raw, String contentType)
public okhttp3.Response exec(String mothod) throws IOException
exec 在接口中 HttpUtilsIOExceptionpublic String execAsBody(String mothod) throws IOException
execAsBody 在接口中 HttpUtilsIOExceptionpublic int execAsCode(String mothod) throws IOException
execAsCode 在接口中 HttpUtilsIOExceptionpublic String get() throws IOException
get 在接口中 HttpUtilsIOExceptionpublic String post() throws IOException
post 在接口中 HttpUtilsIOExceptionpublic void postAsync()
throws IOException
postAsync 在接口中 HttpUtilsIOExceptionpublic void postAsync(HttpCallback<Boolean,okhttp3.Response,Exception> callback) throws IOException
postAsync 在接口中 HttpUtilsIOExceptionpublic void headAsync(HttpCallback<Boolean,okhttp3.Response,Exception> callback) throws IOException
headAsync 在接口中 HttpUtilsIOExceptionpublic String put() throws IOException
put 在接口中 HttpUtilsIOExceptionpublic String patch() throws IOException
patch 在接口中 HttpUtilsIOExceptionpublic String delete() throws IOException
delete 在接口中 HttpUtilsIOExceptionpublic String options() throws IOException
options 在接口中 HttpUtilsIOExceptionpublic int head()
throws IOException
head 在接口中 HttpUtilsIOExceptionCopyright © 2023. All rights reserved.