Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jiedao-api-boot-master
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lanbaoming
jiedao-api-boot-master
Commits
471a32e1
Commit
471a32e1
authored
Nov 28, 2024
by
honghy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加注释
parent
19fa6975
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
HttpUtils.java
.../java/cn/iocoder/yudao/framework/http/util/HttpUtils.java
+6
-6
No files found.
yudao-framework/yudao-common/src/main/java/cn/iocoder/yudao/framework/http/util/HttpUtils.java
View file @
471a32e1
...
...
@@ -20,13 +20,13 @@ public class HttpUtils {
private
static
final
HttpClient
HTTP_CLIENT
=
HttpClientFactory
.
get
(
Request
.
Util
.
OkHttp
);
/**
*
执行POST请求
*
发送POST请求并返回响应结果
*
* @param url
请求的URL
* @param params 请求参数,键值对形式
* @param headers 请求头,键值对形式
* @
return 返回响应对象,包含响应码、响应内容等信息
* @
throws RuntimeException 如果执行请求时发生异常,则抛出运行时异常
* @param url
请求的URL地址
* @param params
请求参数,键值对形式
* @param headers
请求头,键值对形式
* @
param paramFormat 请求参数的格式
* @
return Response对象,包含响应结果
*/
public
static
Response
post
(
String
url
,
Map
<
String
,
Object
>
params
,
Map
<
String
,
String
>
headers
,
Request
.
ParamFormat
paramFormat
)
{
// 创建请求对象,指定URL、请求方法和参数
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment