Package | Description |
---|---|
okhttp3 |
An HTTP+HTTP/2 client for Android and Java applications.
|
okhttp3.dnsoverhttps |
A DNS over HTTPS implementation for OkHttp.
|
okhttp3.internal | |
okhttp3.internal.connection | |
okhttp3.internal.http | |
okhttp3.internal.http1 |
Modifier and Type | Field and Description |
---|---|
(package private) HttpUrl |
Address.url |
(package private) HttpUrl |
Request.url |
(package private) HttpUrl |
Request.Builder.url |
Modifier and Type | Method and Description |
---|---|
HttpUrl |
HttpUrl.Builder.build() |
static HttpUrl |
HttpUrl.get(java.lang.String url)
Returns a new
HttpUrl representing url . |
static HttpUrl |
HttpUrl.get(java.net.URI uri) |
static HttpUrl |
HttpUrl.get(java.net.URL url)
|
static HttpUrl |
HttpUrl.parse(java.lang.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(java.lang.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 and Description |
---|---|
private java.util.List<Cookie> |
JavaNetCookieJar.decodeHeaderAsJavaNetCookies(HttpUrl url,
java.lang.String header)
Convert a request header to OkHttp's cookies via
HttpCookie . |
private java.net.InetAddress |
JavaNetAuthenticator.getConnectToInetAddress(java.net.Proxy proxy,
HttpUrl url) |
static java.lang.String |
Cache.key(HttpUrl url) |
java.util.List<Cookie> |
CookieJar.loadForRequest(HttpUrl url)
Load cookies from the jar for an HTTP request to
url . |
java.util.List<Cookie> |
JavaNetCookieJar.loadForRequest(HttpUrl url) |
boolean |
Cookie.matches(HttpUrl url)
Returns true if this cookie should be included on a request to
url . |
(package private) HttpUrl.Builder |
HttpUrl.Builder.parse(HttpUrl base,
java.lang.String input) |
static Cookie |
Cookie.parse(HttpUrl url,
java.lang.String setCookie)
Attempt to parse a
Set-Cookie HTTP header value setCookie as a cookie. |
(package private) static Cookie |
Cookie.parse(long currentTimeMillis,
HttpUrl url,
java.lang.String setCookie) |
static java.util.List<Cookie> |
Cookie.parseAll(HttpUrl url,
Headers headers)
Returns all of the cookies from a set of HTTP response headers.
|
private static boolean |
Cookie.pathMatch(HttpUrl url,
java.lang.String path) |
void |
CookieJar.saveFromResponse(HttpUrl url,
java.util.List<Cookie> cookies)
Saves
cookies from an HTTP response to this store according to this jar's policy. |
void |
JavaNetCookieJar.saveFromResponse(HttpUrl url,
java.util.List<Cookie> cookies) |
Request.Builder |
Request.Builder.url(HttpUrl url) |
Modifier and Type | Field and Description |
---|---|
private HttpUrl |
DnsOverHttps.url |
(package private) HttpUrl |
DnsOverHttps.Builder.url |
Modifier and Type | Method and Description |
---|---|
HttpUrl |
DnsOverHttps.url() |
Modifier and Type | Method and Description |
---|---|
DnsOverHttps.Builder |
DnsOverHttps.Builder.url(HttpUrl url) |
Modifier and Type | Method and Description |
---|---|
static java.lang.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. |
Modifier and Type | Method and Description |
---|---|
private Address |
Transmitter.createAddress(HttpUrl url) |
private Request |
RealConnection.createTunnel(int readTimeout,
int writeTimeout,
Request tunnelRequest,
HttpUrl url)
To make an HTTPS connection over an HTTP proxy, send an unencrypted CONNECT request to create
the proxy connection.
|
private void |
RouteSelector.resetNextProxy(HttpUrl url,
java.net.Proxy proxy)
Prepares the proxy servers to try.
|
boolean |
RealConnection.supportsUrl(HttpUrl url) |
Modifier and Type | Method and Description |
---|---|
static void |
HttpHeaders.receiveHeaders(CookieJar cookieJar,
HttpUrl url,
Headers headers) |
static java.lang.String |
RequestLine.requestPath(HttpUrl url)
Returns the path to request, like the '/' in 'GET / HTTP/1.1'.
|
Modifier and Type | Field and Description |
---|---|
private HttpUrl |
Http1ExchangeCodec.ChunkedSource.url |
Modifier and Type | Method and Description |
---|---|
private okio.Source |
Http1ExchangeCodec.newChunkedSource(HttpUrl url) |
Constructor and Description |
---|
ChunkedSource(HttpUrl url) |