| 程序包 | 说明 |
|---|---|
| org.noear.solon.test |
| 限定符和类型 | 方法和说明 |
|---|---|
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) |
static HttpUtils |
HttpUtils.http(String url) |
HttpUtils |
HttpTestBase.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 |
HttpTestBase.path(String path) |
HttpUtils |
HttpUtils.timeout(int timeoutSeconds)
超时设置
|
HttpUtils |
HttpUtils.timeout(int connectTimeoutSeconds,
int writeTimeoutSeconds,
int readTimeoutSeconds)
超时设置
|
HttpUtils |
HttpUtils.userAgent(String ua) |
Copyright © 2023. All rights reserved.