| 构造器和说明 |
|---|
HttpClientRequestor()
使用默认的 httpClient 实现和配置
|
HttpClientRequestor(org.apache.http.impl.client.CloseableHttpClient httpClient)
自定义配置 httpClient
|
| 限定符和类型 | 方法和说明 |
|---|---|
org.apache.http.impl.client.CloseableHttpClient |
getHttpClient() |
HttpResponse |
sendRequest(HttpRequest request)
发送请求
|
void |
setHttpClient(org.apache.http.impl.client.CloseableHttpClient httpClient) |
public HttpClientRequestor()
public HttpClientRequestor(org.apache.http.impl.client.CloseableHttpClient httpClient)
public HttpResponse sendRequest(HttpRequest request) throws java.io.IOException
RequestorsendRequest 在接口中 Requestorrequest - the request infojava.io.IOException - IO异常public org.apache.http.impl.client.CloseableHttpClient getHttpClient()
public void setHttpClient(org.apache.http.impl.client.CloseableHttpClient httpClient)
Copyright © 2020. All Rights Reserved.