Skip to content

Latest commit

 

History

History
20 lines (18 loc) · 836 Bytes

README.md

File metadata and controls

20 lines (18 loc) · 836 Bytes

Custom Retrofit With Masking Log

CircleCI

How To Use

 CustomHttpConfig customHttpConfig = CustomHttpConfig.builder()
                .url("https://reqres.in")
                .agent("OkHttp/4.1.0")
                .build();
 Retrofit retrofit = new VewHttp(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());