| Package | Description |
|---|---|
| com.hb0730.https | |
| com.hb0730.https.inter | |
| com.hb0730.https.support.httpclient | |
| com.hb0730.https.support.hutool | |
| com.hb0730.https.support.okhttp3 |
| Modifier and Type | Method and Description |
|---|---|
HttpHeader |
HttpHeader.add(String key,
String value)
添加请求参数
|
HttpHeader |
HttpHeader.addAll(Map<String,String> header)
添加请求参数
|
static HttpHeader |
HttpHeader.builder()
|
| Modifier and Type | Method and Description |
|---|---|
String |
HttpSync.post(String url,
String dataJson,
HttpHeader header) |
HttpSync |
HttpSync.setHeader(HttpHeader header)
设置请求头
|
HttpAsync |
HttpAsync.setHeader(HttpHeader header)
设置请求头
|
| Modifier and Type | Field and Description |
|---|---|
protected HttpHeader |
AbstractSyncHttp.header |
protected HttpHeader |
AbstractAsyncHttp.header |
| Modifier and Type | Method and Description |
|---|---|
String |
SyncHttp.post(String url,
String dataJson,
HttpHeader header)
post请求
|
AbstractSyncHttp |
AbstractSyncHttp.setHeader(HttpHeader header) |
AbstractAsyncHttp |
AbstractAsyncHttp.setHeader(HttpHeader header) |
| Modifier and Type | Method and Description |
|---|---|
private void |
HttpClientSyncImpl.addHeader(org.apache.http.HttpRequest request,
HttpHeader header)
设置请求头信息
|
String |
HttpClientSyncImpl.post(String url,
String dataJson,
HttpHeader header) |
| Modifier and Type | Method and Description |
|---|---|
default cn.hutool.http.HttpRequest |
IHutoolHttp.getHttpRequest(cn.hutool.core.net.url.UrlBuilder builder,
cn.hutool.http.Method method,
HttpConfig config,
HttpHeader header)
create hutool request
|
String |
HutoolSyncImpl.post(String url,
String dataJson,
HttpHeader header) |
| Modifier and Type | Method and Description |
|---|---|
String |
OkHttp3SyncImpl.post(String url,
String dataJson,
HttpHeader header) |
Copyright © 2022. All rights reserved.