Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
avew authored Nov 4, 2022
1 parent 0311fde commit bcb2445
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,20 @@
[https://jitpack.io/#avew/retrofit-mask](https://jitpack.io/#avew/retrofit-mask)

[![](https://jitpack.io/v/avew/retrofit-mask.svg)](https://jitpack.io/#avew/retrofit-mask)

# How To Use

```
CustomHttpConfig customHttpConfig = CustomHttpConfig.builder()
.url("https://reqres.in")
.agent("OkHttp/4.1.0")
.build();
Retrofit retrofit = new OkHttpCustomConfiguration(customHttpConfig, Arrays.asList("https","password"), true).builder()
.addConverterFactory(GsonConverterFactory.create())
.build();
Response<MultipleResource> single = retrofit.create(API.class)
.doGetListResources()
.toBlocking()
.single();
Assert.assertEquals(200, single.code());
```

0 comments on commit bcb2445

Please sign in to comment.