| Package | Description |
|---|---|
| org.noear.solon.net.http | |
| org.noear.solon.net.http.impl | |
| org.noear.solon.net.http.impl.jdk | |
| org.noear.solon.net.http.impl.okhttp |
| Modifier and Type | Class and Description |
|---|---|
class |
HttpResponseException
Http 异常
|
| Modifier and Type | Method and Description |
|---|---|
HttpUtils |
HttpUtils.bodyOfBean(Object obj)
主体配置(由序列化器决定内容类型)
|
String |
HttpUtils.delete()
delete 请求并返回 body
|
<T> T |
HttpUtils.deleteAs(Type type)
delete 请求并返回 body
|
HttpResponse |
HttpUtils.exec(String method)
执行请求并返回响应
|
String |
HttpUtils.execAsBody(String method)
执行请求并返回响应主体
|
<T> T |
HttpUtils.execAsBody(String method,
Type type)
执行请求并返回响应主体
|
int |
HttpUtils.execAsCode(String method)
执行请求并返回代码
|
String |
HttpUtils.get()
get 请求并返回 body
|
<T> T |
HttpUtils.getAs(Type type)
get 请求并返回 body
|
int |
HttpUtils.head()
head 请求并返回 code
|
String |
HttpUtils.options()
options 请求并返回 body
|
String |
HttpUtils.patch()
patch 请求并返回 body
|
<T> T |
HttpUtils.patchAs(Type type)
patch 请求并返回 body
|
String |
HttpUtils.post()
post 请求并返回 body
|
default String |
HttpUtils.post(boolean useMultipart)
post 请求并返回 body
|
<T> T |
HttpUtils.postAs(Type type)
post 请求并返回 body
|
default <T> T |
HttpUtils.postAs(Type type,
boolean useMultipart)
post 请求并返回 body
|
String |
HttpUtils.put()
put 请求并返回 body
|
<T> T |
HttpUtils.putAs(Type type)
put 请求并返回 body
|
| Modifier and Type | Method and Description |
|---|---|
String |
AbstractHttpUtils.delete() |
<T> T |
AbstractHttpUtils.deleteAs(Type type) |
HttpResponse |
AbstractHttpUtils.exec(String method)
执行请求,返回响应对象(需要自己做关闭处理)
|
String |
AbstractHttpUtils.execAsBody(String method) |
<T> T |
AbstractHttpUtils.execAsBody(String method,
Type type) |
int |
AbstractHttpUtils.execAsCode(String method) |
String |
AbstractHttpUtils.get() |
<T> T |
AbstractHttpUtils.getAs(Type type) |
int |
AbstractHttpUtils.head() |
String |
AbstractHttpUtils.options() |
String |
AbstractHttpUtils.patch() |
<T> T |
AbstractHttpUtils.patchAs(Type type) |
String |
AbstractHttpUtils.post() |
<T> T |
AbstractHttpUtils.postAs(Type type) |
String |
AbstractHttpUtils.put() |
<T> T |
AbstractHttpUtils.putAs(Type type) |
| Modifier and Type | Method and Description |
|---|---|
HttpUtils |
JdkHttpUtils.bodyOfBean(Object obj) |
| Modifier and Type | Method and Description |
|---|---|
HttpUtils |
OkHttpUtils.bodyOfBean(Object obj) |
Copyright © 2025. All rights reserved.