| 程序包 | 说明 |
|---|---|
| org.apache.hc.client5.http |
Client component APIs common to all client transports
such as connection route information and resolution
as well as common HTTP method definitions and
exception classes.
|
| org.apache.hc.client5.http.cookie |
Client HTTP state management APIs.
|
| 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.classic |
Classic HTTP client API implementation that supports HTTP/1.1 transport
only.
|
| org.apache.hc.client5.http.protocol |
HTTP protocol interceptors that enable advanced functionality
such as HTTP state management and authentication state caching.
|
| 限定符和类型 | 方法和说明 |
|---|---|
ContextBuilder |
ContextBuilder.useCookieStore(CookieStore cookieStore) |
| 限定符和类型 | 类和说明 |
|---|---|
class |
BasicCookieStore
Default implementation of
CookieStore |
| 限定符和类型 | 方法和说明 |
|---|---|
HttpAsyncClientBuilder |
HttpAsyncClientBuilder.setDefaultCookieStore(CookieStore cookieStore)
Assigns default
CookieStore instance which will be used for
request execution if not explicitly set in the client execution context. |
H2AsyncClientBuilder |
H2AsyncClientBuilder.setDefaultCookieStore(CookieStore cookieStore)
Assigns default
CookieStore instance which will be used for
request execution if not explicitly set in the client execution context. |
| 限定符和类型 | 方法和说明 |
|---|---|
HttpClientBuilder |
HttpClientBuilder.setDefaultCookieStore(CookieStore cookieStore)
Assigns default
CookieStore instance which will be used for
request execution if not explicitly set in the client execution context. |
| 限定符和类型 | 方法和说明 |
|---|---|
CookieStore |
HttpClientContext.getCookieStore() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
HttpClientContext.setCookieStore(CookieStore cookieStore) |
Copyright © 2023. All rights reserved.