Skip to content

Commit

Permalink
Merge pull request square#2103 from square/jw/deprecate-apache-shim
Browse files Browse the repository at this point in the history
Deprecate the Apache shim.
  • Loading branch information
swankjesse committed Dec 15, 2015
2 parents d512ec4 + f8923a4 commit 4b25c2c
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,9 @@
import static org.apache.http.HttpVersion.HTTP_1_1;

/**
* Implements Apache's {@link HttpClient} API using {@link OkHttpClient}.
* <p>
* <strong>Warning:</strong> Many core features of Apache HTTP client are not implemented by this
* API. This includes the keep-alive strategy, cookie store, credentials provider, route planner
* and others.
* @deprecated OkHttp will be dropping its ability to be used with {@link HttpClient} in an
* upcoming release. Applications that need this should either downgrade to the Apache
* implementation or upgrade to OkHttp's Request/Response API.
*/
public final class OkApacheClient implements HttpClient {
private static Request transformRequest(HttpRequest request) {
Expand Down

0 comments on commit 4b25c2c

Please sign in to comment.