| Modifier and Type | Method | Description |
|---|---|---|
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 |
Address.url() |
Returns a URL with the hostname and port of the origin server.
|
HttpUrl |
Request.url() |
| Modifier and Type | Method | Description |
|---|---|---|
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) |
Copyright © 2021. All rights reserved.