| 程序包 | 说明 |
|---|---|
| org.apache.hc.client5.http.impl | |
| org.apache.hc.client5.http.impl.async |
Asynchronous HTTP client API implementation that supports both
HTTP/2 and HTTP/1.1 transport.
|
| org.apache.hc.client5.http.impl.auth |
Standard and common HTTP authentication schemes.
|
| org.apache.hc.client5.http.impl.classic |
Classic HTTP client API implementation that supports HTTP/1.1 transport
only.
|
| 限定符和类型 | 类和说明 |
|---|---|
class |
DefaultAuthenticationStrategy
Default implementation of
AuthenticationStrategy |
| 限定符和类型 | 方法和说明 |
|---|---|
HttpAsyncClientBuilder |
HttpAsyncClientBuilder.setProxyAuthenticationStrategy(AuthenticationStrategy proxyAuthStrategy)
Assigns
AuthenticationStrategy instance for proxy
authentication. |
H2AsyncClientBuilder |
H2AsyncClientBuilder.setProxyAuthenticationStrategy(AuthenticationStrategy proxyAuthStrategy)
Assigns
AuthenticationStrategy instance for proxy
authentication. |
HttpAsyncClientBuilder |
HttpAsyncClientBuilder.setTargetAuthenticationStrategy(AuthenticationStrategy targetAuthStrategy)
Assigns
AuthenticationStrategy instance for target
host authentication. |
H2AsyncClientBuilder |
H2AsyncClientBuilder.setTargetAuthenticationStrategy(AuthenticationStrategy targetAuthStrategy)
Assigns
AuthenticationStrategy instance for target
host authentication. |
| 构造器和说明 |
|---|
AsyncConnectExec(HttpProcessor proxyHttpProcessor,
AuthenticationStrategy proxyAuthStrategy,
SchemePortResolver schemePortResolver,
boolean authCachingDisabled) |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
HttpAuthenticator.updateAuthState(HttpHost host,
ChallengeType challengeType,
HttpResponse response,
AuthenticationStrategy authStrategy,
AuthExchange authExchange,
HttpContext context)
Updates the
AuthExchange state based on the challenge presented in the response message
using the given AuthenticationStrategy. |
| 限定符和类型 | 方法和说明 |
|---|---|
HttpClientBuilder |
HttpClientBuilder.setProxyAuthenticationStrategy(AuthenticationStrategy proxyAuthStrategy)
Assigns
AuthenticationStrategy instance for proxy
authentication. |
HttpClientBuilder |
HttpClientBuilder.setTargetAuthenticationStrategy(AuthenticationStrategy targetAuthStrategy)
Assigns
AuthenticationStrategy instance for target
host authentication. |
| 构造器和说明 |
|---|
ConnectExec(ConnectionReuseStrategy reuseStrategy,
HttpProcessor proxyHttpProcessor,
AuthenticationStrategy proxyAuthStrategy,
SchemePortResolver schemePortResolver,
boolean authCachingDisabled) |
ProtocolExec(AuthenticationStrategy targetAuthStrategy,
AuthenticationStrategy proxyAuthStrategy,
SchemePortResolver schemePortResolver,
boolean authCachingDisabled) |
Copyright © 2023. All rights reserved.