| Package | Description |
|---|---|
| okhttp3 | |
| okhttp3.internal | |
| okhttp3.internal.http |
| Modifier and Type | Method and Description |
|---|---|
HttpUrl |
HttpUrl.Builder.build()
|
static HttpUrl |
HttpUrl.get(URI
|
static HttpUrl |
HttpUrl.get(URL
|
static HttpUrl |
HttpUrl.parse(String
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
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 and Description |
|---|---|
List |
CookieJar.loadForRequest(HttpUrl
Load cookies from the jar for an HTTP request to
url.
|
boolean |
Cookie.matches(HttpUrl
Returns true if this cookie should be included on a request to
url.
|
static Cookie |
Cookie.parse(HttpUrl
Attempt to parse a
Set-Cookie HTTP header value
setCookie as a cookie.
|
static List |
Cookie.parseAll(HttpUrl
Returns all of the cookies from a set of HTTP response headers.
|
void |
CookieJar.saveFromResponse(HttpUrl
Saves
cookies from an HTTP response to this store according to this jar's policy.
|
Request |
Request.Builder.url(HttpUrl
|
| Modifier and Type | Method and Description |
|---|---|
abstract HttpUrl |
Internal.getHttpUrlChecked(String
|
| Modifier and Type | Method and Description |
|---|---|
static String |
Util.hostHeader(HttpUrl
|
| Modifier and Type | Method and Description |
|---|---|
static String |
RequestLine.requestPath(HttpUrl
Returns the path to request, like the '/' in 'GET / HTTP/1.1'.
|
boolean |
HttpEngine.sameConnection(HttpUrl
Returns true if an HTTP request for
followUp can reuse the connection used by this engine.
|