Package | Description |
---|---|
org.dromara.hutool.http.client.cookie |
自定义Cookie
|
org.dromara.hutool.http.client.engine.httpclient4 |
Apache HttpClient 4.x实现
文档见:https://hc.apache.org/httpcomponents-client-4.5.x/index.html |
org.dromara.hutool.http.client.engine.httpclient5 |
Apache HttpClient 5.1.x实现
文档见:https://hc.apache.org/httpcomponents-client-5.1.x/index.html |
org.dromara.hutool.http.client.engine.jdk |
基于JDK的HttpUrlConnection封装的HTTP客户端
|
org.dromara.hutool.http.client.engine.okhttp |
OKHttp3封装
文档见:https://square.github.io/okhttp/ |
Modifier and Type | Method and Description |
---|---|
List<CookieSpi> |
ThreadLocalCookieStore.get(URI httpUrl) |
List<CookieSpi> |
InMemoryCookieStore.get(URI httpUrl) |
List<CookieSpi> |
CookieStoreSpi.get(URI httpUrl)
根据HttpUrl从缓存中读取cookie集合
|
List<CookieSpi> |
ThreadLocalCookieStore.getCookies() |
List<CookieSpi> |
InMemoryCookieStore.getCookies() |
List<CookieSpi> |
CookieStoreSpi.getCookies()
获取全部缓存cookie
|
Modifier and Type | Method and Description |
---|---|
void |
ThreadLocalCookieStore.add(URI httpUrl,
CookieSpi cookie) |
void |
InMemoryCookieStore.add(URI httpUrl,
CookieSpi cookie) |
void |
CookieStoreSpi.add(URI httpUrl,
CookieSpi cookie)
添加cookie
|
boolean |
ThreadLocalCookieStore.remove(URI httpUrl,
CookieSpi cookie) |
boolean |
InMemoryCookieStore.remove(URI httpUrl,
CookieSpi cookie) |
boolean |
CookieStoreSpi.remove(URI httpUrl,
CookieSpi cookie)
移除指定http url cookie集合
|
Modifier and Type | Method and Description |
---|---|
default void |
CookieStoreSpi.add(URI httpUrl,
List<CookieSpi> cookies)
添加指定 http url cookie集合
|
Modifier and Type | Class and Description |
---|---|
class |
HttpClient4Cookie
HttpClient4 Cookie实现
|
Modifier and Type | Class and Description |
---|---|
class |
HttpClient5Cookie
HttpClient5 Cookie实现
|
Modifier and Type | Class and Description |
---|---|
class |
JdkCookie
JDK Cookie实现
|
Modifier and Type | Class and Description |
---|---|
class |
OkCookie
OkHttp Cookie实现
|
Copyright © 2025. All rights reserved.