Skip to content

Commit

Permalink
README.md minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
franmontiel committed Feb 11, 2016
1 parent 1500091 commit 98cf6b9
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ Usage
Create an instance of `PersistentCookieJar` passing a `CookieCache` and a `CookiePersistor`:

```java
ClearableCookieJar cookieJar = new PersistentCookieJar(new SetCookieCache(), new SharedPrefsCookiePersistor(context))
ClearableCookieJar cookieJar =
new PersistentCookieJar(new SetCookieCache(), new SharedPrefsCookiePersistor(context));
```

Then just add the CookieJar when building your OkHttp client:
Expand All @@ -24,9 +25,9 @@ OkHttpClient okHttpClient = new OkHttpClient.Builder()
.build();
```

Characteristics
---------------
This is a really simple library but here are some of the stuff that it provides:
Features
--------
This is a really simple library but here are some of the things that it provides:
* Possibility to clear the jar: `PersistentCookieJar` implements `ClearableCookieJar` interface that declares a `clear()` method for removing all cookies from the jar.

* Decoupled and extensible: `CookieCache` and `CookiePersitor` are interfaces so you can provide your own implementation for each one.
Expand Down

0 comments on commit 98cf6b9

Please sign in to comment.