public class HttpUtils
extends cn.hutool.http.HttpUtil
| 构造器和说明 |
|---|
HttpUtils() |
| 限定符和类型 | 方法和说明 |
|---|---|
static long |
downloadFilePath(String filePath,
OutputStream out)
从本地路径下载文件
|
static String |
getRequestUrl()
当前请求url
|
buildBasicAuth, closeCookie, createGet, createGet, createPost, createRequest, createServer, decodeParamMap, decodeParams, decodeParams, download, download, downloadBytes, downloadFile, downloadFile, downloadFile, downloadFile, downloadFile, downloadFileFromUrl, downloadFileFromUrl, downloadFileFromUrl, downloadFileFromUrl, downloadFileFromUrl, downloadString, downloadString, downloadString, encodeParams, get, get, get, get, get, getCharset, getCharset, getContentTypeByRequestBody, getMimeType, getMimeType, getString, getString, isHttp, isHttps, normalizeParams, post, post, post, post, toParams, toParams, toParams, toParams, urlWithForm, urlWithFormpublic static String getRequestUrl()
public static long downloadFilePath(String filePath, OutputStream out)
filePath - out - Copyright © 2022. All rights reserved.