We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
weixin4j本身不依赖http工具包,会根据当前的环境检测确定使用哪个HttpClient,具体顺序是:
NettyHttpClient -> ApacheHttpClient -> OkHttpClient -> SimpleHttpClient(HttpURLConnection)
基于netty实现的http客户端
netty
基于apache的http工具包,支持commons-httpclient3.x和httpclient4.x
apache
commons-httpclient3.x
httpclient4.x
基于square的OKHttp工具包,支持OkHttp2和OkHttp3
square
OkHttp2
OkHttp3
基于jdk提供的HttpURLConnection实现的http客户端
HttpURLConnection
HttpClientFactory.setDefaultFactory(HttpClientFactory);
HttpClientFactory.setDefaultParams(HttpParams);