public interface HttpUtils
HttpUtils enablePrintln(boolean enable)
HttpUtils timeout(int timeoutSeconds)
HttpUtils timeout(int connectTimeoutSeconds, int writeTimeoutSeconds, int readTimeoutSeconds)
HttpUtils multipart(boolean multipart)
HttpUtils data(String key, String filename, InputStream inputStream, String contentType)
HttpUtils bodyRaw(byte[] bytes)
HttpUtils bodyRaw(InputStream raw)
HttpUtils bodyRaw(InputStream raw, String contentType)
okhttp3.Response exec(String mothod) throws IOException
IOExceptionString execAsBody(String mothod) throws IOException
IOExceptionint execAsCode(String mothod) throws IOException
IOExceptionString get() throws IOException
IOExceptionString post() throws IOException
IOExceptionvoid postAsync()
throws IOException
IOExceptionvoid postAsync(HttpCallback<Boolean,okhttp3.Response,Exception> callback) throws IOException
IOExceptionvoid headAsync(HttpCallback<Boolean,okhttp3.Response,Exception> callback) throws IOException
IOExceptionString put() throws IOException
IOExceptionString patch() throws IOException
IOExceptionString delete() throws IOException
IOExceptionString options() throws IOException
IOExceptionint head() throws IOException
IOExceptionstatic String toQueryString(Map<?,?> map) throws UnsupportedEncodingException
Copyright © 2024. All rights reserved.