public class HttpProxyUtils extends Object
构造器和说明 |
---|
HttpProxyUtils() |
限定符和类型 | 方法和说明 |
---|---|
static void |
initHttpProxy(org.apache.http.impl.client.HttpClientBuilder httpClientBuilder,
WxPayHttpProxy wxPayHttpProxy)
配置 http 正向代理 可以实现内网服务通过代理调用接口
参考代码: WxPayServiceApacheHttpImpl 中的方法 createHttpClientBuilder
|
public static void initHttpProxy(org.apache.http.impl.client.HttpClientBuilder httpClientBuilder, WxPayHttpProxy wxPayHttpProxy)
wxPayHttpProxy
- 代理配置httpClientBuilder
- http构造参数Copyright © 2023. All rights reserved.