跳过导航链接
A B C D E F G H I K L M N O P Q R S T U V W 

A

addHeaders(Map<String, String>) - 类 中的方法org.ladsn.tool.http.HttpBase
新增请求头
不覆盖原有请求头
addParam(String, String) - 类 中的方法org.ladsn.tool.http.webservice.SoapRequest
增加请求参数
AMP - 类 中的静态变量org.ladsn.tool.http.HtmlUtil
 
AndroidSupportSSLFactory - org.ladsn.tool.http.ssl中的类
兼容android低版本SSL连接 咱在测试HttpUrlConnection的时候 发现一部分手机无法连接[GithubPage] 最后发现原来是某些SSL协议没有开启
AndroidSupportSSLFactory() - 类 的构造器org.ladsn.tool.http.ssl.AndroidSupportSSLFactory
 
APOS - 类 中的静态变量org.ladsn.tool.http.HtmlUtil
 

B

basicAuth(String, String) - 类 中的方法org.ladsn.tool.http.HttpRequest
简单验证
body(String) - 类 中的方法org.ladsn.tool.http.HttpRequest
设置内容主体
body(String, String) - 类 中的方法org.ladsn.tool.http.HttpRequest
设置内容主体
请求体body参数支持两种类型: 1.
body(JSON) - 类 中的方法org.ladsn.tool.http.HttpRequest
设置JSON内容主体
设置默认的Content-Type为 application/json 需在此方法调用前使用charset方法设置编码,否则使用默认编码UTF-8
body(byte[]) - 类 中的方法org.ladsn.tool.http.HttpRequest
设置主体字节码
需在此方法调用前使用charset方法设置编码,否则使用默认编码UTF-8
body() - 类 中的方法org.ladsn.tool.http.HttpResponse
获取响应主体
bodyBytes - 类 中的变量org.ladsn.tool.http.HttpBase
存储主体
bodyBytes() - 类 中的方法org.ladsn.tool.http.HttpResponse
获取响应流字节码
此方法会转为同步模式
bodyStream() - 类 中的方法org.ladsn.tool.http.HttpResponse
获得服务区响应流
异步模式下获取Http原生流,同步模式下获取获取到的在内存中的副本
如果想在同步模式下获取流,请先调用HttpResponse.sync()方法强制同步
流获取后处理完毕需关闭此类
build() - 类 中的方法org.ladsn.tool.http.ssl.SSLSocketFactoryBuilder
构建SSLSocketFactory

C

charset - 类 中的变量org.ladsn.tool.http.HttpBase
编码
charset() - 类 中的方法org.ladsn.tool.http.HttpBase
返回字符集
charset(String) - 类 中的方法org.ladsn.tool.http.HttpBase
设置字符集
charset(Charset) - 类 中的方法org.ladsn.tool.http.HttpBase
设置字符集
CHARSET_PATTERN - 类 中的静态变量org.ladsn.tool.http.HttpUtil
正则:Content-Type中的编码信息
checkClientTrusted(X509Certificate[], String) - 类 中的方法org.ladsn.tool.http.ssl.DefaultTrustManager
 
checkServerTrusted(X509Certificate[], String) - 类 中的方法org.ladsn.tool.http.ssl.DefaultTrustManager
 
chr(int) - 类 中的静态方法org.ladsn.tool.http.HTMLFilter
 
cleanHtmlTag(String) - 类 中的静态方法org.ladsn.tool.http.HtmlUtil
清除所有HTML标签
close() - 类 中的方法org.ladsn.tool.http.HttpResponse
 
closeCookie() - 类 中的静态方法org.ladsn.tool.http.HttpRequest
关闭Cookie
connect() - 类 中的方法org.ladsn.tool.http.HttpConnection
连接
contentEncoding() - 类 中的方法org.ladsn.tool.http.HttpResponse
获取内容编码
contentLength() - 类 中的方法org.ladsn.tool.http.HttpRequest
获取内容长度
contentLength(int) - 类 中的方法org.ladsn.tool.http.HttpRequest
设置内容长度
ContentType - org.ladsn.tool.http中的枚举
常用Content-Type类型枚举
contentType(String) - 类 中的方法org.ladsn.tool.http.HttpRequest
设置contentType
cookie(HttpCookie...) - 类 中的方法org.ladsn.tool.http.HttpRequest
设置Cookie
自定义Cookie后会覆盖Hutool的默认Cookie行为
cookie(String) - 类 中的方法org.ladsn.tool.http.HttpRequest
设置Cookie
自定义Cookie后会覆盖Hutool的默认Cookie行为
cookieManager - 类 中的静态变量org.ladsn.tool.http.HttpRequest
Cookie管理
create(String, Method) - 类 中的静态方法org.ladsn.tool.http.HttpConnection
创建HttpConnection
create(String, Method, int) - 类 中的静态方法org.ladsn.tool.http.HttpConnection
创建HttpConnection
create(String, Method, HostnameVerifier, SSLSocketFactory) - 类 中的静态方法org.ladsn.tool.http.HttpConnection
创建HttpConnection
create(String, Method, HostnameVerifier, SSLSocketFactory, int, Proxy) - 类 中的静态方法org.ladsn.tool.http.HttpConnection
创建HttpConnection
create(URL, Method, HostnameVerifier, SSLSocketFactory, int, Proxy) - 类 中的静态方法org.ladsn.tool.http.HttpConnection
创建HttpConnection
create() - 类 中的静态方法org.ladsn.tool.http.ssl.SSLSocketFactoryBuilder
创建 SSLSocketFactoryBuilder
createGet(String) - 类 中的静态方法org.ladsn.tool.http.HttpUtil
创建Http GET请求对象
createPost(String) - 类 中的静态方法org.ladsn.tool.http.HttpUtil
创建Http POST请求对象
createRequest(Method, String) - 类 中的静态方法org.ladsn.tool.http.HttpUtil
创建Http请求对象
createSocket() - 类 中的方法org.ladsn.tool.http.ssl.CustomProtocolsSSLFactory
 
createSocket(Socket, String, int, boolean) - 类 中的方法org.ladsn.tool.http.ssl.CustomProtocolsSSLFactory
 
createSocket(String, int) - 类 中的方法org.ladsn.tool.http.ssl.CustomProtocolsSSLFactory
 
createSocket(String, int, InetAddress, int) - 类 中的方法org.ladsn.tool.http.ssl.CustomProtocolsSSLFactory
 
createSocket(InetAddress, int) - 类 中的方法org.ladsn.tool.http.ssl.CustomProtocolsSSLFactory
 
createSocket(InetAddress, int, InetAddress, int) - 类 中的方法org.ladsn.tool.http.ssl.CustomProtocolsSSLFactory
 
CustomProtocolsSSLFactory - org.ladsn.tool.http.ssl中的类
自定义支持协议类型的SSLSocketFactory
CustomProtocolsSSLFactory(String...) - 类 的构造器org.ladsn.tool.http.ssl.CustomProtocolsSSLFactory
构造

D

decode(String, Charset) - 类 中的静态方法org.ladsn.tool.http.HttpUtil
解码application/x-www-form-urlencoded字符
decode(String, String) - 类 中的静态方法org.ladsn.tool.http.HttpUtil
解码application/x-www-form-urlencoded字符
decodeParamMap(String, String) - 类 中的静态方法org.ladsn.tool.http.HttpUtil
将URL参数解析为Map(也可以解析Post中的键值对参数)
decodeParams(String, String) - 类 中的静态方法org.ladsn.tool.http.HttpUtil
将URL参数解析为Map(也可以解析Post中的键值对参数)
DefaultTrustManager - org.ladsn.tool.http.ssl中的类
证书管理
DefaultTrustManager() - 类 的构造器org.ladsn.tool.http.ssl.DefaultTrustManager
 
delete(String) - 类 中的静态方法org.ladsn.tool.http.HttpRequest
DELETE请求
disableCache() - 类 中的方法org.ladsn.tool.http.HttpConnection
关闭缓存
disableCache() - 类 中的方法org.ladsn.tool.http.HttpRequest
禁用缓存
disableCookie() - 类 中的方法org.ladsn.tool.http.HttpRequest
禁用默认Cookie行为,此方法调用后会将Cookie置为空。
disconnect() - 类 中的方法org.ladsn.tool.http.HttpConnection
断开连接
download(String, OutputStream, boolean) - 类 中的静态方法org.ladsn.tool.http.HttpUtil
下载远程文件
download(String, OutputStream, boolean, StreamProgress) - 类 中的静态方法org.ladsn.tool.http.HttpUtil
下载远程文件
downloadFile(String, String) - 类 中的静态方法org.ladsn.tool.http.HttpUtil
下载远程文件
downloadFile(String, File) - 类 中的静态方法org.ladsn.tool.http.HttpUtil
下载远程文件
downloadFile(String, File, int) - 类 中的静态方法org.ladsn.tool.http.HttpUtil
下载远程文件
downloadFile(String, File, StreamProgress) - 类 中的静态方法org.ladsn.tool.http.HttpUtil
下载远程文件
downloadFile(String, File, int, StreamProgress) - 类 中的静态方法org.ladsn.tool.http.HttpUtil
下载远程文件
downloadString(String, String) - 类 中的静态方法org.ladsn.tool.http.HttpUtil
下载远程文本
downloadString(String, Charset) - 类 中的静态方法org.ladsn.tool.http.HttpUtil
下载远程文本
downloadString(String, Charset, StreamProgress) - 类 中的静态方法org.ladsn.tool.http.HttpUtil
下载远程文本

E

enableDefaultCookie() - 类 中的方法org.ladsn.tool.http.HttpRequest
打开默认的Cookie行为(自动回填服务器传回的Cookie)
encode(String, Charset) - 类 中的静态方法org.ladsn.tool.http.HttpUtil
编码字符为 application/x-www-form-urlencoded
encode(String, String) - 类 中的静态方法org.ladsn.tool.http.HttpUtil
编码字符为 application/x-www-form-urlencoded
encodeParams(String, Charset) - 类 中的静态方法org.ladsn.tool.http.HttpUtil
对URL参数做编码,只编码键和值
提供的值可以是url附带编码,但是不能只是url
encodeUtf8(String) - 类 中的静态方法org.ladsn.tool.http.HttpUtil
编码字符为 application/x-www-form-urlencoded,使用UTF-8编码
escape(String) - 类 中的静态方法org.ladsn.tool.http.HtmlUtil
转义文本中的HTML字符为安全的字符,以下字符被转义: ' 替换为 &#039; (&apos; doesn't work in HTML4) " 替换为 &quot; & 替换为 &amp; < 替换为 &lt; > 替换为 &gt;
execute() - 类 中的方法org.ladsn.tool.http.HttpRequest
执行Reuqest请求
execute(boolean) - 类 中的方法org.ladsn.tool.http.HttpRequest
执行Reuqest请求
execute() - 类 中的方法org.ladsn.tool.http.webservice.SoapRequest
执行Webservice请求,既发送SOAP内容
executeAsync() - 类 中的方法org.ladsn.tool.http.HttpRequest
异步请求
异步请求后获取的HttpResponse 为异步模式,此时此对象持有Http链接(http链接并不会关闭),直调用获取内容方法为止

F

fileForm() - 类 中的方法org.ladsn.tool.http.HttpRequest
获取文件表单数据
filter(String) - 类 中的方法org.ladsn.tool.http.HTMLFilter
given a user submitted input String, filter out any invalid or restricted html.
filter(String) - 类 中的静态方法org.ladsn.tool.http.HtmlUtil
过滤HTML文本,防止XSS攻击
form(String, Object) - 类 中的方法org.ladsn.tool.http.HttpRequest
设置表单数据
form(String, Object, Object...) - 类 中的方法org.ladsn.tool.http.HttpRequest
设置表单数据
form(Map<String, Object>) - 类 中的方法org.ladsn.tool.http.HttpRequest
设置map类型表单数据
form(String, File...) - 类 中的方法org.ladsn.tool.http.HttpRequest
文件表单项
一旦有文件加入,表单变为multipart/form-data
form(String, File) - 类 中的方法org.ladsn.tool.http.HttpRequest
文件表单项
一旦有文件加入,表单变为multipart/form-data
form(String, File, String) - 类 中的方法org.ladsn.tool.http.HttpRequest
文件表单项
一旦有文件加入,表单变为multipart/form-data
form(String, byte[], String) - 类 中的方法org.ladsn.tool.http.HttpRequest
文件byte[]表单项
一旦有文件加入,表单变为multipart/form-data
form(String, Resource) - 类 中的方法org.ladsn.tool.http.HttpRequest
文件表单项
一旦有文件加入,表单变为multipart/form-data
form() - 类 中的方法org.ladsn.tool.http.HttpRequest
获取表单数据

G

get(String) - 枚举 中的静态方法org.ladsn.tool.http.ContentType
从请求参数的body中判断请求的Content-Type类型,支持的类型有: 1. application/json 1. application/xml
get(String) - 类 中的静态方法org.ladsn.tool.http.HttpRequest
GET请求
get(String, Charset) - 类 中的静态方法org.ladsn.tool.http.HttpUtil
发送get请求
get(String) - 类 中的静态方法org.ladsn.tool.http.HttpUtil
发送get请求
get(String, int) - 类 中的静态方法org.ladsn.tool.http.HttpUtil
发送get请求
get(String, Map<String, Object>) - 类 中的静态方法org.ladsn.tool.http.HttpUtil
发送get请求
get(String, Map<String, Object>, int) - 类 中的静态方法org.ladsn.tool.http.HttpUtil
发送get请求
getAcceptedIssuers() - 类 中的方法org.ladsn.tool.http.ssl.DefaultTrustManager
 
getCharset() - 类 中的方法org.ladsn.tool.http.HttpConnection
获取字符集编码
从Http连接的头信息中获得字符集
从ContentType中获取
getCharset(HttpURLConnection) - 类 中的静态方法org.ladsn.tool.http.HttpUtil
从Http连接的头信息中获得字符集
从ContentType中获取
getCharsetName() - 类 中的方法org.ladsn.tool.http.HttpConnection
获得字符集编码
从Http连接的头信息中获得字符集
从ContentType中获取
getClientIP(HttpServletRequest, String...) - 类 中的静态方法org.ladsn.tool.http.HttpUtil
获取客户端IP
默认检测的Header:
1、X-Forwarded-For
2、X-Real-IP
3、Proxy-Client-IP
4、WL-Proxy-Client-IP
otherHeaderNames参数用于自定义检测的Header
getContentTypeByRequestBody(String) - 类 中的静态方法org.ladsn.tool.http.HttpUtil
从请求参数的body中判断请求的Content-Type类型,支持的类型有: 1. application/json 1. application/xml
getCookie(String) - 类 中的方法org.ladsn.tool.http.HttpResponse
获取Cookie
getCookieManager() - 类 中的静态方法org.ladsn.tool.http.HttpRequest
获取Cookie管理器,用于自定义Cookie管理
getCookies() - 类 中的方法org.ladsn.tool.http.HttpResponse
获取Cookie
getCookieStr() - 类 中的方法org.ladsn.tool.http.HttpResponse
获取本次请求服务器返回的Cookie信息
getCookieValue(String) - 类 中的方法org.ladsn.tool.http.HttpResponse
获取Cookie值
getDefaultCipherSuites() - 类 中的方法org.ladsn.tool.http.ssl.CustomProtocolsSSLFactory
 
getErrorStream() - 类 中的方法org.ladsn.tool.http.HttpConnection
当返回错误代码时,获得错误内容流
getHttpURLConnection() - 类 中的方法org.ladsn.tool.http.HttpConnection
获取HttpURLConnection对象
getInputStream() - 类 中的方法org.ladsn.tool.http.HttpConnection
获得输入流对象
输入流对象用于读取数据
getMethod() - 类 中的方法org.ladsn.tool.http.HttpConnection
获取请求方法,GET/POST
getMethod() - 类 中的方法org.ladsn.tool.http.HttpRequest
获取Http请求方法
getMimeType(String) - 类 中的静态方法org.ladsn.tool.http.HttpUtil
根据文件扩展名获得MimeType
getMultistageReverseProxyIp(String) - 类 中的静态方法org.ladsn.tool.http.HttpUtil
从多级反向代理中获得第一个非unknown IP地址
getOutputStream() - 类 中的方法org.ladsn.tool.http.HttpConnection
获取输出流对象 输出流对象用于发送数据
getProxy() - 类 中的方法org.ladsn.tool.http.HttpConnection
获得代理
getStatus() - 类 中的方法org.ladsn.tool.http.HttpResponse
获取状态码
getString(InputStream, Charset, boolean) - 类 中的静态方法org.ladsn.tool.http.HttpUtil
从流中读取内容
首先尝试使用charset编码读取内容(如果为空默认UTF-8),如果isGetCharsetFromContent为true,则通过正则在正文中获取编码信息,转换为指定编码;
getString(byte[], Charset, boolean) - 类 中的静态方法org.ladsn.tool.http.HttpUtil
从流中读取内容
首先尝试使用charset编码读取内容(如果为空默认UTF-8),如果isGetCharsetFromContent为true,则通过正则在正文中获取编码信息,转换为指定编码;
getSupportedCipherSuites() - 类 中的方法org.ladsn.tool.http.ssl.CustomProtocolsSSLFactory
 
getUrl() - 类 中的方法org.ladsn.tool.http.HttpConnection
获取请求URL
getUrl() - 类 中的方法org.ladsn.tool.http.HttpRequest
获取请求URL
GlobalHeaders - org.ladsn.tool.http中的枚举
全局头部信息
所有Http请求将共用此全局头部信息,除非在HttpRequest中自定义头部信息覆盖之
GT - 类 中的静态变量org.ladsn.tool.http.HtmlUtil
 

H

head(String) - 类 中的静态方法org.ladsn.tool.http.HttpRequest
HEAD请求
header(String) - 枚举 中的方法org.ladsn.tool.http.GlobalHeaders
根据name获取头信息
header(Header) - 枚举 中的方法org.ladsn.tool.http.GlobalHeaders
根据name获取头信息
header(String, String, boolean) - 枚举 中的方法org.ladsn.tool.http.GlobalHeaders
设置一个header
如果覆盖模式,则替换之前的值,否则加入到值列表中
header(Header, String, boolean) - 枚举 中的方法org.ladsn.tool.http.GlobalHeaders
设置一个header
如果覆盖模式,则替换之前的值,否则加入到值列表中
header(Header, String) - 枚举 中的方法org.ladsn.tool.http.GlobalHeaders
设置一个header
覆盖模式,则替换之前的值
header(String, String) - 枚举 中的方法org.ladsn.tool.http.GlobalHeaders
设置一个header
覆盖模式,则替换之前的值
header(Map<String, List<String>>) - 枚举 中的方法org.ladsn.tool.http.GlobalHeaders
设置请求头
不覆盖原有请求头
Header - org.ladsn.tool.http中的枚举
Http 头域
header(String) - 类 中的方法org.ladsn.tool.http.HttpBase
根据name获取头信息
根据RFC2616规范,header的name不区分大小写
header(Header) - 类 中的方法org.ladsn.tool.http.HttpBase
根据name获取头信息
header(String, String, boolean) - 类 中的方法org.ladsn.tool.http.HttpBase
设置一个header
如果覆盖模式,则替换之前的值,否则加入到值列表中
header(Header, String, boolean) - 类 中的方法org.ladsn.tool.http.HttpBase
设置一个header
如果覆盖模式,则替换之前的值,否则加入到值列表中
header(Header, String) - 类 中的方法org.ladsn.tool.http.HttpBase
设置一个header
覆盖模式,则替换之前的值
header(String, String) - 类 中的方法org.ladsn.tool.http.HttpBase
设置一个header
覆盖模式,则替换之前的值
header(Map<String, List<String>>) - 类 中的方法org.ladsn.tool.http.HttpBase
设置请求头
不覆盖原有请求头
header(Map<String, List<String>>, boolean) - 类 中的方法org.ladsn.tool.http.HttpBase
设置请求头
不覆盖原有请求头
header(String, String, boolean) - 类 中的方法org.ladsn.tool.http.HttpConnection
设置请求头
当请求头存在时,覆盖之
header(Header, String, boolean) - 类 中的方法org.ladsn.tool.http.HttpConnection
设置请求头
当请求头存在时,覆盖之
header(Map<String, List<String>>, boolean) - 类 中的方法org.ladsn.tool.http.HttpConnection
设置请求头
不覆盖原有请求头
header(String) - 类 中的方法org.ladsn.tool.http.HttpConnection
获取Http请求头
header(Header) - 类 中的方法org.ladsn.tool.http.HttpConnection
获取Http请求头
headerList(String) - 枚举 中的方法org.ladsn.tool.http.GlobalHeaders
根据name获取头信息列表
headerList(String) - 类 中的方法org.ladsn.tool.http.HttpBase
根据name获取头信息列表
headers - 枚举 中的变量org.ladsn.tool.http.GlobalHeaders
存储头信息
headers() - 枚举 中的方法org.ladsn.tool.http.GlobalHeaders
获取headers
headers - 类 中的变量org.ladsn.tool.http.HttpBase
存储头信息
headers() - 类 中的方法org.ladsn.tool.http.HttpBase
获取headers
headers() - 类 中的方法org.ladsn.tool.http.HttpConnection
获取所有Http请求头
HTMLFilter - org.ladsn.tool.http中的类
HTML filtering utility for protecting against XSS (Cross Site Scripting).
HTMLFilter() - 类 的构造器org.ladsn.tool.http.HTMLFilter
Default constructor.
HTMLFilter(boolean) - 类 的构造器org.ladsn.tool.http.HTMLFilter
Set debug flag to true.
HTMLFilter(Map<String, Object>) - 类 的构造器org.ladsn.tool.http.HTMLFilter
Map-parameter configurable constructor.
htmlSpecialChars(String) - 类 中的静态方法org.ladsn.tool.http.HTMLFilter
 
HtmlUtil - org.ladsn.tool.http中的类
HTML工具类
HtmlUtil() - 类 的构造器org.ladsn.tool.http.HtmlUtil
 
HTTP_1_0 - 类 中的静态变量org.ladsn.tool.http.HttpBase
HTTP/1.0
HTTP_1_1 - 类 中的静态变量org.ladsn.tool.http.HttpBase
HTTP/1.1
HTTP_ACCEPTED - 类 中的静态变量org.ladsn.tool.http.HttpStatus
HTTP Status-Code 202: Accepted.
HTTP_ACCEPTED - 接口 中的静态变量org.ladsn.tool.http.Status
HTTP Status-Code 202: Accepted.
HTTP_BAD_GATEWAY - 类 中的静态变量org.ladsn.tool.http.HttpStatus
HTTP Status-Code 502: Bad Gateway.
HTTP_BAD_GATEWAY - 接口 中的静态变量org.ladsn.tool.http.Status
HTTP Status-Code 502: Bad Gateway.
HTTP_BAD_METHOD - 类 中的静态变量org.ladsn.tool.http.HttpStatus
HTTP Status-Code 405: Method Not Allowed.
HTTP_BAD_METHOD - 接口 中的静态变量org.ladsn.tool.http.Status
HTTP Status-Code 405: Method Not Allowed.
HTTP_BAD_REQUEST - 类 中的静态变量org.ladsn.tool.http.HttpStatus
HTTP Status-Code 400: Bad Request.
HTTP_BAD_REQUEST - 接口 中的静态变量org.ladsn.tool.http.Status
HTTP Status-Code 400: Bad Request.
HTTP_CLIENT_TIMEOUT - 类 中的静态变量org.ladsn.tool.http.HttpStatus
HTTP Status-Code 408: Request Time-Out.
HTTP_CLIENT_TIMEOUT - 接口 中的静态变量org.ladsn.tool.http.Status
HTTP Status-Code 408: Request Time-Out.
HTTP_CONFLICT - 类 中的静态变量org.ladsn.tool.http.HttpStatus
HTTP Status-Code 409: Conflict.
HTTP_CONFLICT - 接口 中的静态变量org.ladsn.tool.http.Status
HTTP Status-Code 409: Conflict.
HTTP_CREATED - 类 中的静态变量org.ladsn.tool.http.HttpStatus
HTTP Status-Code 201: Created.
HTTP_CREATED - 接口 中的静态变量org.ladsn.tool.http.Status
HTTP Status-Code 201: Created.
HTTP_ENTITY_TOO_LARGE - 类 中的静态变量org.ladsn.tool.http.HttpStatus
HTTP Status-Code 413: Request Entity Too Large.
HTTP_ENTITY_TOO_LARGE - 接口 中的静态变量org.ladsn.tool.http.Status
HTTP Status-Code 413: Request Entity Too Large.
HTTP_FORBIDDEN - 类 中的静态变量org.ladsn.tool.http.HttpStatus
HTTP Status-Code 403: Forbidden.
HTTP_FORBIDDEN - 接口 中的静态变量org.ladsn.tool.http.Status
HTTP Status-Code 403: Forbidden.
HTTP_GATEWAY_TIMEOUT - 类 中的静态变量org.ladsn.tool.http.HttpStatus
HTTP Status-Code 504: Gateway Timeout.
HTTP_GATEWAY_TIMEOUT - 接口 中的静态变量org.ladsn.tool.http.Status
HTTP Status-Code 504: Gateway Timeout.
HTTP_GONE - 类 中的静态变量org.ladsn.tool.http.HttpStatus
HTTP Status-Code 410: Gone.
HTTP_GONE - 接口 中的静态变量org.ladsn.tool.http.Status
HTTP Status-Code 410: Gone.
HTTP_INTERNAL_ERROR - 类 中的静态变量org.ladsn.tool.http.HttpStatus
HTTP Status-Code 500: Internal Server Error.
HTTP_INTERNAL_ERROR - 接口 中的静态变量org.ladsn.tool.http.Status
HTTP Status-Code 500: Internal Server Error.
HTTP_LENGTH_REQUIRED - 类 中的静态变量org.ladsn.tool.http.HttpStatus
HTTP Status-Code 411: Length Required.
HTTP_LENGTH_REQUIRED - 接口 中的静态变量org.ladsn.tool.http.Status
HTTP Status-Code 411: Length Required.
HTTP_MOVED_PERM - 类 中的静态变量org.ladsn.tool.http.HttpStatus
HTTP Status-Code 301: Moved Permanently.
HTTP_MOVED_PERM - 接口 中的静态变量org.ladsn.tool.http.Status
HTTP Status-Code 301: Moved Permanently.
HTTP_MOVED_TEMP - 类 中的静态变量org.ladsn.tool.http.HttpStatus
HTTP Status-Code 302: Temporary Redirect.
HTTP_MOVED_TEMP - 接口 中的静态变量org.ladsn.tool.http.Status
HTTP Status-Code 302: Temporary Redirect.
HTTP_MULT_CHOICE - 类 中的静态变量org.ladsn.tool.http.HttpStatus
HTTP Status-Code 300: Multiple Choices.
HTTP_MULT_CHOICE - 接口 中的静态变量org.ladsn.tool.http.Status
HTTP Status-Code 300: Multiple Choices.
HTTP_NO_CONTENT - 类 中的静态变量org.ladsn.tool.http.HttpStatus
HTTP Status-Code 204: No Content.
HTTP_NO_CONTENT - 接口 中的静态变量org.ladsn.tool.http.Status
HTTP Status-Code 204: No Content.
HTTP_NOT_ACCEPTABLE - 类 中的静态变量org.ladsn.tool.http.HttpStatus
HTTP Status-Code 406: Not Acceptable.
HTTP_NOT_ACCEPTABLE - 接口 中的静态变量org.ladsn.tool.http.Status
HTTP Status-Code 406: Not Acceptable.
HTTP_NOT_AUTHORITATIVE - 类 中的静态变量org.ladsn.tool.http.HttpStatus
HTTP Status-Code 203: Non-Authoritative Information.
HTTP_NOT_AUTHORITATIVE - 接口 中的静态变量org.ladsn.tool.http.Status
HTTP Status-Code 203: Non-Authoritative Information.
HTTP_NOT_FOUND - 类 中的静态变量org.ladsn.tool.http.HttpStatus
HTTP Status-Code 404: Not Found.
HTTP_NOT_FOUND - 接口 中的静态变量org.ladsn.tool.http.Status
HTTP Status-Code 404: Not Found.
HTTP_NOT_IMPLEMENTED - 类 中的静态变量org.ladsn.tool.http.HttpStatus
HTTP Status-Code 501: Not Implemented.
HTTP_NOT_IMPLEMENTED - 接口 中的静态变量org.ladsn.tool.http.Status
HTTP Status-Code 501: Not Implemented.
HTTP_NOT_MODIFIED - 类 中的静态变量org.ladsn.tool.http.HttpStatus
HTTP Status-Code 304: Not Modified.
HTTP_NOT_MODIFIED - 接口 中的静态变量org.ladsn.tool.http.Status
HTTP Status-Code 304: Not Modified.
HTTP_OK - 类 中的静态变量org.ladsn.tool.http.HttpStatus
HTTP Status-Code 200: OK.
HTTP_OK - 接口 中的静态变量org.ladsn.tool.http.Status
HTTP Status-Code 200: OK.
HTTP_PARTIAL - 类 中的静态变量org.ladsn.tool.http.HttpStatus
HTTP Status-Code 206: Partial Content.
HTTP_PARTIAL - 接口 中的静态变量org.ladsn.tool.http.Status
HTTP Status-Code 206: Partial Content.
HTTP_PAYMENT_REQUIRED - 类 中的静态变量org.ladsn.tool.http.HttpStatus
HTTP Status-Code 402: Payment Required.
HTTP_PAYMENT_REQUIRED - 接口 中的静态变量org.ladsn.tool.http.Status
HTTP Status-Code 402: Payment Required.
HTTP_PRECON_FAILED - 类 中的静态变量org.ladsn.tool.http.HttpStatus
HTTP Status-Code 412: Precondition Failed.
HTTP_PRECON_FAILED - 接口 中的静态变量org.ladsn.tool.http.Status
HTTP Status-Code 412: Precondition Failed.
HTTP_PROXY_AUTH - 类 中的静态变量org.ladsn.tool.http.HttpStatus
HTTP Status-Code 407: Proxy Authentication Required.
HTTP_PROXY_AUTH - 接口 中的静态变量org.ladsn.tool.http.Status
HTTP Status-Code 407: Proxy Authentication Required.
HTTP_REQ_TOO_LONG - 类 中的静态变量org.ladsn.tool.http.HttpStatus
HTTP Status-Code 414: Request-URI Too Large.
HTTP_REQ_TOO_LONG - 接口 中的静态变量org.ladsn.tool.http.Status
HTTP Status-Code 414: Request-URI Too Large.
HTTP_RESET - 类 中的静态变量org.ladsn.tool.http.HttpStatus
HTTP Status-Code 205: Reset Content.
HTTP_RESET - 接口 中的静态变量org.ladsn.tool.http.Status
HTTP Status-Code 205: Reset Content.
HTTP_SEE_OTHER - 类 中的静态变量org.ladsn.tool.http.HttpStatus
HTTP Status-Code 303: See Other.
HTTP_SEE_OTHER - 接口 中的静态变量org.ladsn.tool.http.Status
HTTP Status-Code 303: See Other.
HTTP_UNAUTHORIZED - 类 中的静态变量org.ladsn.tool.http.HttpStatus
HTTP Status-Code 401: Unauthorized.
HTTP_UNAUTHORIZED - 接口 中的静态变量org.ladsn.tool.http.Status
HTTP Status-Code 401: Unauthorized.
HTTP_UNAVAILABLE - 类 中的静态变量org.ladsn.tool.http.HttpStatus
HTTP Status-Code 503: Service Unavailable.
HTTP_UNAVAILABLE - 接口 中的静态变量org.ladsn.tool.http.Status
HTTP Status-Code 503: Service Unavailable.
HTTP_UNSUPPORTED_TYPE - 类 中的静态变量org.ladsn.tool.http.HttpStatus
HTTP Status-Code 415: Unsupported Media Type.
HTTP_UNSUPPORTED_TYPE - 接口 中的静态变量org.ladsn.tool.http.Status
HTTP Status-Code 415: Unsupported Media Type.
HTTP_USE_PROXY - 类 中的静态变量org.ladsn.tool.http.HttpStatus
HTTP Status-Code 305: Use Proxy.
HTTP_USE_PROXY - 接口 中的静态变量org.ladsn.tool.http.Status
HTTP Status-Code 305: Use Proxy.
HTTP_VERSION - 类 中的静态变量org.ladsn.tool.http.HttpStatus
HTTP Status-Code 505: HTTP Version Not Supported.
HTTP_VERSION - 接口 中的静态变量org.ladsn.tool.http.Status
HTTP Status-Code 505: HTTP Version Not Supported.
HttpBase<T> - org.ladsn.tool.http中的类
http基类
HttpBase() - 类 的构造器org.ladsn.tool.http.HttpBase
 
HttpConnection - org.ladsn.tool.http中的类
http连接对象,对HttpURLConnection的包装
HttpConnection(String, Method) - 类 的构造器org.ladsn.tool.http.HttpConnection
构造HttpConnection
HttpConnection(String, Method, int) - 类 的构造器org.ladsn.tool.http.HttpConnection
构造HttpConnection
HttpConnection(String, Method, HostnameVerifier, SSLSocketFactory, int, Proxy) - 类 的构造器org.ladsn.tool.http.HttpConnection
构造HttpConnection
HttpConnection(URL, Method, HostnameVerifier, SSLSocketFactory, int, Proxy) - 类 的构造器org.ladsn.tool.http.HttpConnection
构造HttpConnection
HttpException - org.ladsn.tool.http中的异常错误
HTTP异常
HttpException(Throwable) - 异常错误 的构造器org.ladsn.tool.http.HttpException
 
HttpException(String) - 异常错误 的构造器org.ladsn.tool.http.HttpException
 
HttpException(String, Object...) - 异常错误 的构造器org.ladsn.tool.http.HttpException
 
HttpException(String, Throwable) - 异常错误 的构造器org.ladsn.tool.http.HttpException
 
HttpException(Throwable, String, Object...) - 异常错误 的构造器org.ladsn.tool.http.HttpException
 
HttpRequest - org.ladsn.tool.http中的类
http请求类
Http请求类用于构建Http请求并同步获取结果,此类通过CookieManager持有域名对应的Cookie值,再次请求时会自动附带Cookie信息
HttpRequest(String) - 类 的构造器org.ladsn.tool.http.HttpRequest
构造
HttpResponse - org.ladsn.tool.http中的类
Http响应类
非线程安全对象
HttpResponse(HttpConnection, Charset, boolean, boolean) - 类 的构造器org.ladsn.tool.http.HttpResponse
构造
HttpStatus - org.ladsn.tool.http中的类
HTTP状态码
HttpUtil - org.ladsn.tool.http中的类
Http请求工具类
HttpUtil() - 类 的构造器org.ladsn.tool.http.HttpUtil
 
httpVersion - 类 中的变量org.ladsn.tool.http.HttpBase
http版本
httpVersion() - 类 中的方法org.ladsn.tool.http.HttpBase
返回http版本
httpVersion(String) - 类 中的方法org.ladsn.tool.http.HttpBase
设置http版本

I

initConn() - 类 中的方法org.ladsn.tool.http.HttpConnection
初始化连接相关信息
isAlwaysMakeTags() - 类 中的方法org.ladsn.tool.http.HTMLFilter
 
isDefault(String) - 枚举 中的静态方法org.ladsn.tool.http.ContentType
是否为默认Content-Type,默认包括null和application/x-www-form-urlencoded
isFormUrlEncoed(String) - 枚举 中的静态方法org.ladsn.tool.http.ContentType
是否为application/x-www-form-urlencoded
isGzip() - 类 中的方法org.ladsn.tool.http.HttpResponse
 
isHttps(String) - 类 中的静态方法org.ladsn.tool.http.HttpUtil
检测是否https
isKeepAlive() - 类 中的方法org.ladsn.tool.http.HttpRequest
 
isOk() - 类 中的方法org.ladsn.tool.http.HttpResponse
请求是否成功,判断依据为:状态码范围在200~299内。
isStripComments() - 类 中的方法org.ladsn.tool.http.HTMLFilter
 
isUnknow(String) - 类 中的静态方法org.ladsn.tool.http.HttpUtil
检测给定字符串是否为未知,多用于检测HTTP请求相关

K

keepAlive(boolean) - 类 中的方法org.ladsn.tool.http.HttpRequest
设置是否为长连接

L

LT - 类 中的静态变量org.ladsn.tool.http.HtmlUtil
 

M

META_CHARSET_PATTERN - 类 中的静态变量org.ladsn.tool.http.HttpUtil
正则:匹配meta标签的编码信息
method(Method) - 类 中的方法org.ladsn.tool.http.HttpRequest
设置请求方法
Method - org.ladsn.tool.http中的枚举
Http方法枚举

N

NBSP - 类 中的静态变量org.ladsn.tool.http.HtmlUtil
 

O

options(String) - 类 中的静态方法org.ladsn.tool.http.HttpRequest
OPTIONS请求
org.ladsn.tool.http - 程序包 org.ladsn.tool.http
Hutool-http针对JDK的HttpUrlConnection做一层封装,简化了HTTPS请求、文件上传、Cookie记忆等操作,使Http请求变得无比简单。
org.ladsn.tool.http.ssl - 程序包 org.ladsn.tool.http.ssl
SSL封装
org.ladsn.tool.http.webservice - 程序包 org.ladsn.tool.http.webservice
Webservice客户端封装实现

P

patch(String) - 类 中的静态方法org.ladsn.tool.http.HttpRequest
PATCH请求
post(String) - 类 中的静态方法org.ladsn.tool.http.HttpRequest
POST请求
post(String, Map<String, Object>) - 类 中的静态方法org.ladsn.tool.http.HttpUtil
发送post请求
post(String, Map<String, Object>, int) - 类 中的静态方法org.ladsn.tool.http.HttpUtil
发送post请求
post(String, String) - 类 中的静态方法org.ladsn.tool.http.HttpUtil
发送post请求
请求体body参数支持两种类型: 1.
post(String, String, int) - 类 中的静态方法org.ladsn.tool.http.HttpUtil
发送post请求
请求体body参数支持两种类型: 1.
put(String) - 类 中的静态方法org.ladsn.tool.http.HttpRequest
PUT请求
putDefault(boolean) - 枚举 中的方法org.ladsn.tool.http.GlobalHeaders
加入默认的头部信息

Q

QUOTE - 类 中的静态变量org.ladsn.tool.http.HtmlUtil
 

R

RE_HTML_MARK - 类 中的静态变量org.ladsn.tool.http.HtmlUtil
 
RE_SCRIPT - 类 中的静态变量org.ladsn.tool.http.HtmlUtil
 
removeAllHtmlAttr(String, String...) - 类 中的静态方法org.ladsn.tool.http.HtmlUtil
去除指定标签的所有属性
removeHeader(String) - 枚举 中的方法org.ladsn.tool.http.GlobalHeaders
移除一个头信息
removeHeader(Header) - 枚举 中的方法org.ladsn.tool.http.GlobalHeaders
移除一个头信息
removeHeader(String) - 类 中的方法org.ladsn.tool.http.HttpBase
移除一个头信息
removeHeader(Header) - 类 中的方法org.ladsn.tool.http.HttpBase
移除一个头信息
removeHtmlAttr(String, String...) - 类 中的静态方法org.ladsn.tool.http.HtmlUtil
去除HTML标签中的属性
removeHtmlTag(String, String...) - 类 中的静态方法org.ladsn.tool.http.HtmlUtil
清除指定HTML标签和被标签包围的内容
不区分大小写
removeHtmlTag(String, boolean, String...) - 类 中的静态方法org.ladsn.tool.http.HtmlUtil
清除指定HTML标签
不区分大小写
responseCode() - 类 中的方法org.ladsn.tool.http.HttpConnection
获取响应码

S

setCharset(Charset) - 类 中的方法org.ladsn.tool.http.webservice.SoapRequest
设置编码
setChunkedStreamingMode(int) - 类 中的方法org.ladsn.tool.http.HttpConnection
采用流方式上传数据,无需本地缓存数据。
setConnectionAndReadTimeout(int) - 类 中的方法org.ladsn.tool.http.HttpConnection
设置连接和读取的超时时间
setConnectTimeout(int) - 类 中的方法org.ladsn.tool.http.HttpConnection
设置连接超时
setCookie(String) - 类 中的方法org.ladsn.tool.http.HttpConnection
设置Cookie
setEncodeUrl(boolean) - 类 中的方法org.ladsn.tool.http.HttpRequest
是否对URL中的参数进行编码
setFollowRedirects(boolean) - 类 中的方法org.ladsn.tool.http.HttpRequest
设置是否打开重定向,如果打开默认重定向次数为2
此方法效果与HttpRequest.setMaxRedirectCount(int) 一致
setHostnameVerifier(HostnameVerifier) - 类 中的方法org.ladsn.tool.http.HttpRequest
设置域名验证器
只针对HTTPS请求,如果不设置,不做验证,所有域名被信任
setInstanceFollowRedirects(boolean) - 类 中的方法org.ladsn.tool.http.HttpConnection
设置自动HTTP 30X跳转
setKeyManagers(KeyManager...) - 类 中的方法org.ladsn.tool.http.ssl.SSLSocketFactoryBuilder
设置 JSSE key managers
setMaxRedirectCount(int) - 类 中的方法org.ladsn.tool.http.HttpRequest
设置最大重定向次数
如果次数小于1则表示不重定向,大于等于1表示打开重定向
setMethod(Method) - 类 中的方法org.ladsn.tool.http.HttpConnection
设置请求方法
setMethod(Method) - 类 中的方法org.ladsn.tool.http.HttpRequest
设置请求方法
setMethod(String) - 类 中的方法org.ladsn.tool.http.webservice.SoapRequest
设置请求方法
setNamespace(String) - 类 中的方法org.ladsn.tool.http.webservice.SoapRequest
设置命名空间
setParams(Map<String, String>) - 类 中的方法org.ladsn.tool.http.webservice.SoapRequest
设置 请求参数
setProtocol(String) - 类 中的方法org.ladsn.tool.http.ssl.SSLSocketFactoryBuilder
设置协议
setProxy(Proxy) - 类 中的方法org.ladsn.tool.http.HttpRequest
设置代理
setReadTimeout(int) - 类 中的方法org.ladsn.tool.http.HttpConnection
设置读取超时
setSecureRandom(SecureRandom) - 类 中的方法org.ladsn.tool.http.ssl.SSLSocketFactoryBuilder
设置 SecureRandom
setSSLProtocol(String) - 类 中的方法org.ladsn.tool.http.HttpRequest
设置HTTPS安全连接协议,只针对HTTPS请求
setSSLSocketFactory(SSLSocketFactory) - 类 中的方法org.ladsn.tool.http.HttpRequest
设置SSLSocketFactory
只针对HTTPS请求,如果不设置,使用默认的SSLSocketFactory
默认SSLSocketFactory为:SSLSocketFactoryBuilder.create().build();
setTrustManagers(TrustManager...) - 类 中的方法org.ladsn.tool.http.ssl.SSLSocketFactoryBuilder
设置信任信息
setUrl(String) - 类 中的方法org.ladsn.tool.http.HttpRequest
设置URL
setUrl(String) - 类 中的方法org.ladsn.tool.http.webservice.SoapRequest
设置Webservice请求地址
setUrlHandler(URLStreamHandler) - 类 中的方法org.ladsn.tool.http.HttpRequest
设置URLStreamHandler 部分环境下需要单独设置此项,例如当 WebLogic Server 实例充当 SSL 客户端角色(它会尝试通过 SSL 连接到其他服务器或应用程序)时,它会验证 SSL 服务器在数字证书中返回的主机名是否与用于连接 SSL 服务器的 URL 主机名相匹配。
SoapRequest - org.ladsn.tool.http.webservice中的类
SOAP请求对象,包括请求地址、方法、参数等信息
SoapRequest(String, String) - 类 的构造器org.ladsn.tool.http.webservice.SoapRequest
构造
SSL - 类 中的静态变量org.ladsn.tool.http.ssl.SSLSocketFactoryBuilder
Supports some version of SSL; may support other versions
SSLSocketFactoryBuilder - org.ladsn.tool.http.ssl中的类
SSLSocketFactory构建器
SSLSocketFactoryBuilder() - 类 的构造器org.ladsn.tool.http.ssl.SSLSocketFactoryBuilder
 
SSLv2 - 类 中的静态变量org.ladsn.tool.http.ssl.SSLSocketFactoryBuilder
Supports SSL version 2 or later; may support other versions
SSLv3 - 类 中的静态变量org.ladsn.tool.http.ssl.SSLSocketFactoryBuilder
Supports SSL version 3; may support other versions
Status - org.ladsn.tool.http中的接口
返回状态码
sync() - 类 中的方法org.ladsn.tool.http.HttpResponse
同步
如果为异步状态,则暂时不读取服务器中响应的内容,而是持有Http链接的InputStream

T

timeout(int) - 类 中的方法org.ladsn.tool.http.HttpRequest
设置超时,单位:毫秒
TIMEOUT_DEFAULT - 类 中的静态变量org.ladsn.tool.http.HttpRequest
默认超时时长,-1表示默认超时时长
TLS - 类 中的静态变量org.ladsn.tool.http.ssl.SSLSocketFactoryBuilder
Supports some version of TLS; may support other versions
TLSv1 - 类 中的静态变量org.ladsn.tool.http.ssl.SSLSocketFactoryBuilder
Supports RFC 2246: TLS version 1.0 ; may support other versions
TLSv11 - 类 中的静态变量org.ladsn.tool.http.ssl.SSLSocketFactoryBuilder
Supports RFC 4346: TLS version 1.1 ; may support other versions
TLSv12 - 类 中的静态变量org.ladsn.tool.http.ssl.SSLSocketFactoryBuilder
Supports RFC 5246: TLS version 1.2 ; may support other versions
toParams(Map<String, ?>) - 类 中的静态方法org.ladsn.tool.http.HttpUtil
将Map形式的Form表单数据转换为Url参数形式,不做编码
toParams(Map<String, Object>, String) - 类 中的静态方法org.ladsn.tool.http.HttpUtil
将Map形式的Form表单数据转换为Url参数形式
编码键和值对
toParams(Map<String, ?>, Charset) - 类 中的静态方法org.ladsn.tool.http.HttpUtil
将Map形式的Form表单数据转换为Url参数形式
paramMap中如果key为空(null和"")会被忽略,如果value为null,会被做为空白符("")
会自动url编码键和值 key1=v1&key2=&key3=v3
toString() - 枚举 中的方法org.ladsn.tool.http.ContentType
 
toString() - 枚举 中的方法org.ladsn.tool.http.Header
 
toString() - 类 中的方法org.ladsn.tool.http.HttpBase
 
toString() - 类 中的方法org.ladsn.tool.http.HttpConnection
 
toString() - 类 中的方法org.ladsn.tool.http.HttpResponse
 
trace(String) - 类 中的静态方法org.ladsn.tool.http.HttpRequest
TRACE请求
TrustAnyHostnameVerifier - org.ladsn.tool.http.ssl中的类
https 域名校验
TrustAnyHostnameVerifier() - 类 的构造器org.ladsn.tool.http.ssl.TrustAnyHostnameVerifier
 

U

unescape(String) - 类 中的静态方法org.ladsn.tool.http.HtmlUtil
还原被转义的HTML特殊字符
unwrapHtmlTag(String, String...) - 类 中的静态方法org.ladsn.tool.http.HtmlUtil
清除指定HTML标签,不包括内容
不区分大小写
urlWithForm(String, Map<String, Object>, Charset, boolean) - 类 中的静态方法org.ladsn.tool.http.HttpUtil
将表单数据加到URL中(用于GET表单提交)
表单的键值对会被url编码,但是url中原参数不会被编码
urlWithForm(String, String, Charset, boolean) - 类 中的静态方法org.ladsn.tool.http.HttpUtil
将表单数据字符串加到URL中(用于GET表单提交)

V

valueOf(String) - 枚举 中的静态方法org.ladsn.tool.http.ContentType
返回带有指定名称的该类型的枚举常量。
valueOf(String) - 枚举 中的静态方法org.ladsn.tool.http.GlobalHeaders
返回带有指定名称的该类型的枚举常量。
valueOf(String) - 枚举 中的静态方法org.ladsn.tool.http.Header
返回带有指定名称的该类型的枚举常量。
valueOf(String) - 枚举 中的静态方法org.ladsn.tool.http.Method
返回带有指定名称的该类型的枚举常量。
values() - 枚举 中的静态方法org.ladsn.tool.http.ContentType
按照声明该枚举类型的常量的顺序, 返回 包含这些常量的数组。
values() - 枚举 中的静态方法org.ladsn.tool.http.GlobalHeaders
按照声明该枚举类型的常量的顺序, 返回 包含这些常量的数组。
values() - 枚举 中的静态方法org.ladsn.tool.http.Header
按照声明该枚举类型的常量的顺序, 返回 包含这些常量的数组。
values() - 枚举 中的静态方法org.ladsn.tool.http.Method
按照声明该枚举类型的常量的顺序, 返回 包含这些常量的数组。
verify(String, SSLSession) - 类 中的方法org.ladsn.tool.http.ssl.TrustAnyHostnameVerifier
 

W

writeBody(OutputStream, boolean, StreamProgress) - 类 中的方法org.ladsn.tool.http.HttpResponse
将响应内容写出到OutputStream
异步模式下直接读取Http流写出,同步模式下将存储在内存中的响应内容写出
写出后会关闭Http流(异步模式)
writeBody(File, StreamProgress) - 类 中的方法org.ladsn.tool.http.HttpResponse
将响应内容写出到文件
异步模式下直接读取Http流写出,同步模式下将存储在内存中的响应内容写出
写出后会关闭Http流(异步模式)
writeBody(File) - 类 中的方法org.ladsn.tool.http.HttpResponse
将响应内容写出到文件
异步模式下直接读取Http流写出,同步模式下将存储在内存中的响应内容写出
写出后会关闭Http流(异步模式)
writeBody(String) - 类 中的方法org.ladsn.tool.http.HttpResponse
将响应内容写出到文件
异步模式下直接读取Http流写出,同步模式下将存储在内存中的响应内容写出
写出后会关闭Http流(异步模式)
A B C D E F G H I K L M N O P Q R S T U V W 
跳过导航链接

Copyright © 2018. All rights reserved.