| 程序包 | 说明 |
|---|---|
| org.noear.solon.net.http | |
| org.noear.solon.net.http.impl |
| 限定符和类型 | 方法和说明 |
|---|---|
HttpUtils |
HttpUtils.bodyJson(String txt)
主体配置
|
HttpUtils |
HttpUtils.bodyRaw(byte[] bytes)
主体配置
|
HttpUtils |
HttpUtils.bodyRaw(byte[] bytes,
String contentType)
主体配置
|
HttpUtils |
HttpUtils.bodyRaw(InputStream raw)
主体配置
|
HttpUtils |
HttpUtils.bodyRaw(InputStream raw,
String contentType)
主体配置
|
HttpUtils |
HttpUtils.bodyTxt(String txt)
主体配置
|
HttpUtils |
HttpUtils.bodyTxt(String txt,
String contentType)
主体配置
|
HttpUtils |
HttpUtils.charset(String charset)
编码配置
|
HttpUtils |
HttpUtils.cookies(Map<String,String> cookies)
主体配置
|
HttpUtils |
HttpUtils.data(Iterable<org.noear.solon.core.util.KeyValues<String>> data)
参数配置
|
HttpUtils |
HttpUtils.data(Map data)
参数配置
|
HttpUtils |
HttpUtils.data(String key,
String value)
参数配置
|
HttpUtils |
HttpUtils.data(String key,
String filename,
InputStream inputStream,
String contentType)
参数配置
|
HttpUtils |
HttpUtils.enablePrintln(boolean enable)
启用打印(专为 tester 服务)
|
HttpUtils |
HttpUtils.header(String name,
String value)
头配置(替换)
|
HttpUtils |
HttpUtils.headerAdd(String name,
String value)
头配置(添加)
|
HttpUtils |
HttpUtils.headers(Iterable<org.noear.solon.core.util.KeyValues<String>> headers)
头配置
|
HttpUtils |
HttpUtils.headers(Map<String,String> headers)
头配置
|
static HttpUtils |
HttpUtils.http(String url) |
static HttpUtils |
HttpUtils.http(String service,
String path) |
static HttpUtils |
HttpUtils.http(String group,
String service,
String path) |
HttpUtils |
HttpUtils.multipart(boolean multipart)
是否多部分配置
|
HttpUtils |
HttpUtils.timeout(int timeoutSeconds)
超时配置
|
HttpUtils |
HttpUtils.timeout(int connectTimeoutSeconds,
int writeTimeoutSeconds,
int readTimeoutSeconds)
超时配置
|
HttpUtils |
HttpUtils.userAgent(String ua)
用户代理配置
|
| 限定符和类型 | 方法和说明 |
|---|---|
default void |
HttpExtension.onInit(HttpUtils httpUtils,
String url)
初始化
|
| 限定符和类型 | 方法和说明 |
|---|---|
static void |
PreheatUtils.preheat(String path,
org.noear.solon.core.util.ConsumerEx<HttpUtils> handling)
预热本地地址
|
| 限定符和类型 | 类和说明 |
|---|---|
class |
HttpUtilsImpl
Http 工具实现
|
| 限定符和类型 | 方法和说明 |
|---|---|
HttpUtils |
HttpUtilsImpl.data(Iterable<org.noear.solon.core.util.KeyValues<String>> data) |
HttpUtils |
HttpUtilsImpl.enablePrintln(boolean enable) |
HttpUtils |
HttpUtilsImpl.headers(Iterable<org.noear.solon.core.util.KeyValues<String>> headers) |
Copyright © 2024. All rights reserved.