Skip to content
Commits on Source (4)
......@@ -6,7 +6,7 @@
<parent>
<groupId>com.squareup.okhttp3</groupId>
<artifactId>parent</artifactId>
<version>3.12.0</version>
<version>3.12.1</version>
</parent>
<artifactId>benchmarks</artifactId>
......
......@@ -6,7 +6,7 @@
<parent>
<groupId>com.squareup.okhttp3</groupId>
<artifactId>parent</artifactId>
<version>3.12.0</version>
<version>3.12.1</version>
</parent>
<artifactId>okhttp-bom</artifactId>
......
libokhttp-java (3.12.1-1) unstable; urgency=medium
* New upstream version 3.12.1.
* Declare compliance with Debian Policy 4.3.0.
-- Markus Koschany <apo@debian.org> Fri, 28 Dec 2018 20:25:57 +0100
libokhttp-java (3.12.0-1) unstable; urgency=medium
* New upstream version 3.12.0.
......
......@@ -13,7 +13,7 @@ Build-Depends:
libanimal-sniffer-java,
libokio-java (>= 1.14.0),
maven-debian-helper (>= 2.1)
Standards-Version: 4.2.1
Standards-Version: 4.3.0
Vcs-Git: https://anonscm.debian.org/git/pkg-java/libokhttp-java.git
Vcs-Browser: https://anonscm.debian.org/cgit/pkg-java/libokhttp-java.git
Homepage: https://github.com/square/okhttp
......
......@@ -6,7 +6,7 @@
<parent>
<groupId>com.squareup.okhttp3</groupId>
<artifactId>parent</artifactId>
<version>3.12.0</version>
<version>3.12.1</version>
</parent>
<artifactId>mockwebserver</artifactId>
......
......@@ -6,7 +6,7 @@
<parent>
<groupId>com.squareup.okhttp3</groupId>
<artifactId>parent</artifactId>
<version>3.12.0</version>
<version>3.12.1</version>
</parent>
<artifactId>okcurl</artifactId>
......
......@@ -6,7 +6,7 @@
<parent>
<groupId>com.squareup.okhttp3</groupId>
<artifactId>parent</artifactId>
<version>3.12.0</version>
<version>3.12.1</version>
</parent>
<artifactId>okhttp-android-support</artifactId>
......
......@@ -6,7 +6,7 @@
<parent>
<groupId>com.squareup.okhttp3</groupId>
<artifactId>parent</artifactId>
<version>3.12.0</version>
<version>3.12.1</version>
</parent>
<artifactId>okhttp-apache</artifactId>
......
......@@ -6,7 +6,7 @@
<parent>
<groupId>com.squareup.okhttp3</groupId>
<artifactId>parent</artifactId>
<version>3.12.0</version>
<version>3.12.1</version>
</parent>
<artifactId>okhttp-dnsoverhttps</artifactId>
......
......@@ -6,7 +6,7 @@
<parent>
<groupId>com.squareup.okhttp3</groupId>
<artifactId>parent</artifactId>
<version>3.12.0</version>
<version>3.12.1</version>
</parent>
<artifactId>logging-interceptor</artifactId>
......
......@@ -6,7 +6,7 @@
<parent>
<groupId>com.squareup.okhttp3</groupId>
<artifactId>parent</artifactId>
<version>3.12.0</version>
<version>3.12.1</version>
</parent>
<artifactId>okhttp-sse</artifactId>
......
......@@ -6,7 +6,7 @@
<parent>
<groupId>com.squareup.okhttp3</groupId>
<artifactId>parent</artifactId>
<version>3.12.0</version>
<version>3.12.1</version>
</parent>
<artifactId>okhttp-testing-support</artifactId>
......
......@@ -6,7 +6,7 @@
<parent>
<groupId>com.squareup.okhttp3</groupId>
<artifactId>parent</artifactId>
<version>3.12.0</version>
<version>3.12.1</version>
</parent>
<artifactId>okhttp-tests</artifactId>
......
......@@ -6,7 +6,7 @@
<parent>
<groupId>com.squareup.okhttp3</groupId>
<artifactId>parent</artifactId>
<version>3.12.0</version>
<version>3.12.1</version>
</parent>
<artifactId>okhttp-tls</artifactId>
......
......@@ -6,7 +6,7 @@
<parent>
<groupId>com.squareup.okhttp3</groupId>
<artifactId>parent</artifactId>
<version>3.12.0</version>
<version>3.12.1</version>
</parent>
<artifactId>okhttp-urlconnection</artifactId>
......
......@@ -22,12 +22,14 @@ import java.net.InetSocketAddress;
import java.net.PasswordAuthentication;
import java.net.Proxy;
import java.util.List;
import okhttp3.internal.annotations.EverythingIsNonNull;
/**
* Adapts {@link java.net.Authenticator} to {@link Authenticator}. Configure OkHttp to use {@link
* java.net.Authenticator} with {@link OkHttpClient.Builder#authenticator} or {@link
* OkHttpClient.Builder#proxyAuthenticator(Authenticator)}.
*/
@EverythingIsNonNull
public final class JavaNetAuthenticator implements Authenticator {
@Override public Request authenticate(Route route, Response response) throws IOException {
List<Challenge> challenges = response.challenges();
......
......@@ -22,6 +22,7 @@ import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.Map;
import okhttp3.internal.annotations.EverythingIsNonNull;
import okhttp3.internal.platform.Platform;
import static okhttp3.internal.Util.delimiterOffset;
......@@ -29,6 +30,7 @@ import static okhttp3.internal.Util.trimSubstring;
import static okhttp3.internal.platform.Platform.WARN;
/** A cookie jar that delegates to a {@link java.net.CookieHandler}. */
@EverythingIsNonNull
public final class JavaNetCookieJar implements CookieJar {
private final CookieHandler cookieHandler;
......
......@@ -22,6 +22,7 @@ import java.net.URLConnection;
import java.net.URLStreamHandler;
import java.net.URLStreamHandlerFactory;
import okhttp3.internal.URLFilter;
import okhttp3.internal.annotations.EverythingIsNonNull;
import okhttp3.internal.huc.OkHttpURLConnection;
import okhttp3.internal.huc.OkHttpsURLConnection;
......@@ -30,6 +31,7 @@ import okhttp3.internal.huc.OkHttpsURLConnection;
* upcoming release. Applications that need this should either downgrade to the system's built-in
* {@link HttpURLConnection} or upgrade to OkHttp's Request/Response API.
*/
@EverythingIsNonNull
public final class OkUrlFactory implements URLStreamHandlerFactory, Cloneable {
private OkHttpClient client;
private URLFilter urlFilter;
......
/** Support for JDK provider APIs. */
@okhttp3.internal.annotations.EverythingIsNonNull
package okhttp3;
......@@ -6,7 +6,7 @@
<parent>
<groupId>com.squareup.okhttp3</groupId>
<artifactId>parent</artifactId>
<version>3.12.0</version>
<version>3.12.1</version>
</parent>
<artifactId>okhttp</artifactId>
......