| 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 | |
| org.noear.solon.net.http.textstream |
| Modifier and Type | Method and Description |
|---|---|
HttpResponse |
HttpUtils.exec(String method)
执行请求并返回响应
|
| Modifier and Type | Method and Description |
|---|---|
CompletableFuture<HttpResponse> |
HttpUtils.execAsync(String method)
异步执行请求
|
| Constructor and Description |
|---|
HttpResponseException(HttpResponse response,
String requestMethod,
URL requestUrl) |
HttpResponseException(HttpResponse response,
String requestMethod,
URL requestUrl,
Throwable cause) |
| Modifier and Type | Method and Description |
|---|---|
HttpResponse |
AbstractHttpUtils.exec(String method)
执行请求,返回响应对象(需要自己做关闭处理)
|
protected abstract HttpResponse |
AbstractHttpUtils.execDo(String method,
CompletableFuture<HttpResponse> future) |
| Modifier and Type | Method and Description |
|---|---|
CompletableFuture<HttpResponse> |
AbstractHttpUtils.execAsync(String method) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract HttpResponse |
AbstractHttpUtils.execDo(String method,
CompletableFuture<HttpResponse> future) |
| Modifier and Type | Class and Description |
|---|---|
class |
JdkHttpResponse
Http 响应 JDK HttpURLConnection 实现
|
| Modifier and Type | Method and Description |
|---|---|
protected HttpResponse |
JdkHttpUtils.execDo(String _method,
CompletableFuture<HttpResponse> future) |
protected HttpResponse |
JdkHttpUtils.getResponse(HttpURLConnection _builder,
String method) |
protected HttpResponse |
JdkHttpUtils.request(HttpURLConnection _builder,
String method) |
| Modifier and Type | Method and Description |
|---|---|
protected HttpResponse |
JdkHttpUtils.execDo(String _method,
CompletableFuture<HttpResponse> future) |
| Modifier and Type | Class and Description |
|---|---|
class |
OkHttpResponse
Http 响应 OkHttp 实现
|
| Modifier and Type | Method and Description |
|---|---|
protected HttpResponse |
OkHttpUtils.execDo(String _method,
CompletableFuture<HttpResponse> future) |
protected HttpResponse |
OkHttpUtils.getResponse(okhttp3.Response response,
String method) |
| Modifier and Type | Method and Description |
|---|---|
protected HttpResponse |
OkHttpUtils.execDo(String _method,
CompletableFuture<HttpResponse> future) |
| Modifier and Type | Method and Description |
|---|---|
static org.reactivestreams.Publisher<String> |
TextStreamUtil.parseLineStream(HttpResponse response)
解析文件行流
|
static void |
TextStreamUtil.parseLineStream(HttpResponse response,
org.reactivestreams.Subscriber<? super String> subscriber)
解析文件行流
|
static org.reactivestreams.Publisher<ServerSentEvent> |
TextStreamUtil.parseSseStream(HttpResponse response)
解析服务推送事件流
|
static void |
TextStreamUtil.parseSseStream(HttpResponse response,
org.reactivestreams.Subscriber<? super ServerSentEvent> subscriber)
解析服务推送事件流
|
Copyright © 2025. All rights reserved.