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());
-
Notifications
You must be signed in to change notification settings - Fork 0
Http Client based on okhttp
License
avew/retrofit-mask
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Http Client based on okhttp
Topics
Resources
License
Stars
Watchers
Forks
Packages 0
No packages published