| 程序包 | 说明 |
|---|---|
| org.dromara.hutool.http.client |
HTTP请求客户端封装,请求过程如下:
Server
^ |
| v
Request Response
^ |
| v
ClientEngine
|
| org.dromara.hutool.http.client.engine.jdk |
基于JDK的HttpUrlConnection封装的HTTP客户端
|
| org.dromara.hutool.http.meta |
Http元数据信息,包括Header枚举、状态码、Http方法、枚举Content-Type等
|
| 限定符和类型 | 方法和说明 |
|---|---|
Method |
Request.method()
获取Http请求方法
|
| 限定符和类型 | 方法和说明 |
|---|---|
Request |
Request.method(Method method)
设置请求方法
|
| 限定符和类型 | 方法和说明 |
|---|---|
Method |
JdkHttpConnection.getMethod()
获取请求方法,GET/POST
|
| 限定符和类型 | 方法和说明 |
|---|---|
JdkHttpConnection |
JdkHttpConnection.setMethod(Method method)
设置请求方法
|
| 限定符和类型 | 方法和说明 |
|---|---|
static Method |
Method.valueOf(String name)
返回带有指定名称的该类型的枚举常量。
|
static Method[] |
Method.values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
Copyright © 2023. All rights reserved.