| Package | Description |
|---|---|
| org.dromara.hutool.http.client |
HTTP请求客户端封装,请求过程如下:
Server
^ |
| v
Request Response
^ |
| v
ClientEngine
|
| org.dromara.hutool.http.client.body |
请求体封装实现
|
| 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.client.engine.okhttp |
OKHttp3封装
文档见:https://square.github.io/okhttp/ |
| Class and Description |
|---|
| HttpBody
定义请求体接口
|
| ResponseBody
响应体部分封装
|
| Class and Description |
|---|
| BytesBody
bytes类型的Http request body,主要发送编码后的表单数据或rest body(如JSON或XML)
|
| FormBody
Form表单形式的消息体
|
| HttpBody
定义请求体接口
|
| MultipartBody
Multipart/form-data数据的请求体封装
遵循RFC2387规范,见:https://www.rfc-editor.org/rfc/rfc2387 |
| MultipartOutputStream
Multipart/form-data输出流封装
遵循RFC2387规范,见:https://www.rfc-editor.org/rfc/rfc2387 |
ResourceBody
Resource类型的Http request body,主要发送资源文件中的内容 |
| ResponseBody
响应体部分封装
|
| UrlEncodedFormBody
application/x-www-form-urlencoded 类型请求body封装
|
| Class and Description |
|---|
| HttpBody
定义请求体接口
|
| ResponseBody
响应体部分封装
|
| Class and Description |
|---|
| HttpBody
定义请求体接口
|
| ResponseBody
响应体部分封装
|
| Class and Description |
|---|
| ResponseBody
响应体部分封装
|
| Class and Description |
|---|
| HttpBody
定义请求体接口
|
| ResponseBody
响应体部分封装
|
Copyright © 2025. All rights reserved.