| 程序包 | 说明 |
|---|---|
| org.noear.solon.test | |
| org.noear.solon.test.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 cookies) |
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) |
HttpUtils |
HttpUtils.header(String name,
String value) |
HttpUtils |
HttpUtils.headerAdd(String name,
String value) |
HttpUtils |
HttpUtils.headers(Map<String,String> headers) |
HttpUtils |
HttpTester.http(int port)
请求本机服务
|
static HttpUtils |
HttpUtils.http(String url) |
HttpUtils |
HttpTester.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 |
HttpTester.path(int port,
String path)
请求本机服务
|
HttpUtils |
HttpTester.path(String path)
请求当前服务
|
HttpUtils |
HttpUtils.timeout(int timeoutSeconds) |
HttpUtils |
HttpUtils.timeout(int connectTimeoutSeconds,
int writeTimeoutSeconds,
int readTimeoutSeconds) |
HttpUtils |
HttpUtils.userAgent(String ua) |
| 限定符和类型 | 类和说明 |
|---|---|
class |
HttpUtilsImpl |
| 限定符和类型 | 方法和说明 |
|---|---|
HttpUtils |
HttpUtilsImpl.bodyJson(String txt) |
HttpUtils |
HttpUtilsImpl.bodyRaw(byte[] bytes) |
HttpUtils |
HttpUtilsImpl.bodyRaw(byte[] bytes,
String contentType) |
HttpUtils |
HttpUtilsImpl.bodyRaw(InputStream raw) |
HttpUtils |
HttpUtilsImpl.bodyRaw(InputStream raw,
String contentType) |
HttpUtils |
HttpUtilsImpl.bodyTxt(String txt) |
HttpUtils |
HttpUtilsImpl.bodyTxt(String txt,
String contentType) |
HttpUtils |
HttpUtilsImpl.charset(String charset) |
HttpUtils |
HttpUtilsImpl.cookies(Map cookies) |
HttpUtils |
HttpUtilsImpl.data(Map data) |
HttpUtils |
HttpUtilsImpl.data(String key,
String value) |
HttpUtils |
HttpUtilsImpl.data(String key,
String filename,
InputStream inputStream,
String contentType) |
HttpUtils |
HttpUtilsImpl.enablePrintln(boolean enable) |
HttpUtils |
HttpUtilsImpl.header(String name,
String value) |
HttpUtils |
HttpUtilsImpl.headerAdd(String name,
String value) |
HttpUtils |
HttpUtilsImpl.headers(Map<String,String> headers) |
HttpUtils |
HttpUtilsImpl.multipart(boolean multipart) |
HttpUtils |
HttpUtilsImpl.timeout(int timeoutSeconds)
超时设置
|
HttpUtils |
HttpUtilsImpl.timeout(int connectTimeoutSeconds,
int writeTimeoutSeconds,
int readTimeoutSeconds)
超时设置
|
HttpUtils |
HttpUtilsImpl.userAgent(String ua) |
Copyright © 2024. All rights reserved.