Package | Description |
---|---|
org.dromara.hutool.http.client |
HTTP请求客户端封装,请求过程如下:
Server
^ |
| v
Request Response
^ |
| v
ClientEngine
|
org.dromara.hutool.http.client.engine |
Http客户端引擎实现
|
org.dromara.hutool.http.client.engine.httpclient4 |
Apache HttpClient 4.x实现
文档见:https://hc.apache.org/httpcomponents-client-4.5.x/index.html |
org.dromara.hutool.http.client.engine.httpclient5 |
Apache HttpClient 5.1.x实现
文档见:https://hc.apache.org/httpcomponents-client-5.1.x/index.html |
org.dromara.hutool.http.client.engine.jdk |
基于JDK的HttpUrlConnection封装的HTTP客户端
|
org.dromara.hutool.http.server.engine |
HTTP服务器引擎包
|
Modifier and Type | Method and Description |
---|---|
default String |
Response.bodyStr()
获取响应主体
|
Modifier and Type | Method and Description |
---|---|
static ClientEngine |
ClientEngineFactory.createEngine(String engineName)
创建自定义引擎
|
Modifier and Type | Method and Description |
---|---|
String |
HttpClient4Response.bodyStr() |
Modifier and Type | Method and Description |
---|---|
String |
HttpClient5Response.bodyStr() |
Modifier and Type | Method and Description |
---|---|
JdkHttpConnection |
JdkHttpConnection.setSSLInfo(SSLInfo sslInfo)
设置https中SSL相关请求参数
有些时候htts请求会出现com.sun.net.ssl.internal.www.protocol.https.HttpsURLConnectionOldImpl的实现,此为sun内部api,按照普通http请求处理 |
Modifier and Type | Method and Description |
---|---|
static ServerEngine |
ServerEngineFactory.createEngine(String engineName)
创建自定义引擎
|
Copyright © 2025. All rights reserved.