| 程序包 | 说明 |
|---|---|
| net.dongliu.requests | |
| net.dongliu.requests.utils |
Utils classes, Only for internal use!
|
| 限定符和类型 | 方法和说明 |
|---|---|
Cookie |
Response.getFirstCookie(String name)
Get first cookie match the name, return null if not exists
|
Cookie |
RawResponse.getFirstCookie(String name)
Get first cookie match the name, return null if not exists
|
| 限定符和类型 | 方法和说明 |
|---|---|
Collection<Cookie> |
Response.getCookies()
Get all returned cookies
|
Collection<Cookie> |
RawResponse.getCookies()
Get all cookies
|
Collection<Cookie> |
CookieJar.getCookies()
Get all cookies in this store
|
List<Cookie> |
CookieJar.getCookies(URL url)
Get cookies match the given url.
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
CookieJar.storeCookies(Collection<Cookie> cookies)
Add multi cookies to cookie jar.
|
| 构造器和说明 |
|---|
Response(int statusCode,
List<Cookie> cookies,
net.dongliu.requests.Headers headers,
T body) |
| 限定符和类型 | 方法和说明 |
|---|---|
static Cookie |
Cookies.parseCookie(String cookieStr,
String host,
String defaultPath)
Parse one cookie header value, return the cookie.
|
| 限定符和类型 | 方法和说明 |
|---|---|
static boolean |
Cookies.match(Cookie cookie,
String protocol,
String host,
String path)
If cookie match the given scheme, host, and path.
|
Copyright © 2017. All rights reserved.