| Package | Description |
|---|---|
| cn.xnatural.app | |
| cn.xnatural.app.util |
| Modifier and Type | Method and Description |
|---|---|
static Httper |
Utils.http()
构建一个 http 请求, 支持 get, post.
|
| Modifier and Type | Method and Description |
|---|---|
Httper |
Httper.charset(String charset) |
Httper |
Httper.connectTimeout(int timeout) |
Httper |
Httper.contentType(String contentType)
设置 content-type
|
Httper |
Httper.cookie(String name,
Object value) |
Httper |
Httper.debug() |
Httper |
Httper.delete(String url) |
Httper |
Httper.fileStream(String pName,
String filename,
InputStream fileStream)
添加文件流
|
Httper |
Httper.get(String url) |
Httper |
Httper.header(String name,
String value) |
Httper |
Httper.jsonBody(String jsonStr) |
Httper |
Httper.param(String name,
Object value)
添加参数
|
Httper |
Httper.post(String url) |
Httper |
Httper.preConnect(Consumer<HttpURLConnection> preConnect) |
Httper |
Httper.put(String url) |
Httper |
Httper.readTimeout(int timeout) |
Httper |
Httper.textBody(String bodyStr) |
Httper |
Httper.tlsVersion(String tlsVersion) |
Copyright © 2022. All rights reserved.