| Package | Description |
|---|---|
| com.squareup.okhttp | |
| com.squareup.okhttp.internal | |
| com.squareup.okhttp.internal.http |
| Modifier and Type | Method and Description |
|---|---|
HttpUrl |
HttpUrl.Builder.build() |
static HttpUrl |
HttpUrl.get(URI uri) |
static HttpUrl |
HttpUrl.get(URL url)
|
HttpUrl |
Request.httpUrl() |
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. |
HttpUrl |
Address.url()
Returns a URL with the hostname and port of the origin server.
|
| Modifier and Type | Method and Description |
|---|---|
Request.Builder |
Request.Builder.url(HttpUrl url) |
| Modifier and Type | Method and Description |
|---|---|
abstract HttpUrl |
Internal.getHttpUrlChecked(String url) |
| Modifier and Type | Method and Description |
|---|---|
static String |
Util.hostHeader(HttpUrl url) |
| Modifier and Type | Method and Description |
|---|---|
static String |
RequestLine.requestPath(HttpUrl url)
Returns the path to request, like the '/' in 'GET / HTTP/1.1'.
|
boolean |
HttpEngine.sameConnection(HttpUrl followUp)
Returns true if an HTTP request for
followUp can reuse the
connection used by this engine. |
Copyright © 2017. All Rights Reserved.