| 程序包 | 说明 |
|---|---|
| com.lark.oapi.okhttp |
An HTTP+HTTP/2 client for Android and Java applications.
|
| com.lark.oapi.okhttp.internal | |
| com.lark.oapi.okhttp.internal.connection | |
| com.lark.oapi.okhttp.internal.http |
| 限定符和类型 | 方法和说明 |
|---|---|
HttpUrl |
HttpUrl.Builder.build() |
static HttpUrl |
HttpUrl.get(String url)
Returns a new
HttpUrl representing url. |
static HttpUrl |
HttpUrl.get(URI uri) |
static HttpUrl |
HttpUrl.get(URL url)
|
static HttpUrl |
HttpUrl.parse(String url)
Returns a new
HttpUrl representing url if it is a well-formed HTTP or HTTPS
URL, or null if it isn't. |
HttpUrl |
HttpUrl.resolve(String link)
Returns the URL that would be retrieved by following
link from this URL, or null if the
resulting URL is not well-formed. |
HttpUrl |
Request.url() |
HttpUrl |
Address.url()
Returns a URL with the hostname and port of the origin server.
|
| 限定符和类型 | 方法和说明 |
|---|---|
static String |
Cache.key(HttpUrl url) |
List<Cookie> |
CookieJar.loadForRequest(HttpUrl url)
Load cookies from the jar for an HTTP request to
url. |
boolean |
Cookie.matches(HttpUrl url)
Returns true if this cookie should be included on a request to
url. |
static Cookie |
Cookie.parse(HttpUrl url,
String setCookie)
Attempt to parse a
Set-Cookie HTTP header value setCookie as a cookie. |
static List<Cookie> |
Cookie.parseAll(HttpUrl url,
Headers headers)
Returns all of the cookies from a set of HTTP response headers.
|
void |
CookieJar.saveFromResponse(HttpUrl url,
List<Cookie> cookies)
Saves
cookies from an HTTP response to this store according to this jar's policy. |
Request.Builder |
Request.Builder.url(HttpUrl url) |
| 限定符和类型 | 方法和说明 |
|---|---|
static String |
Util.hostHeader(HttpUrl url,
boolean includeDefaultPort) |
static boolean |
Util.sameConnection(HttpUrl a,
HttpUrl b)
Returns true if an HTTP request for
a and b can reuse a connection. |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
RealConnection.supportsUrl(HttpUrl url) |
| 限定符和类型 | 方法和说明 |
|---|---|
static void |
HttpHeaders.receiveHeaders(CookieJar cookieJar,
HttpUrl url,
Headers headers) |
static String |
RequestLine.requestPath(HttpUrl url)
Returns the path to request, like the '/' in 'GET / HTTP/1.1'.
|
Copyright © 2022. All rights reserved.