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());
Http Client based on okhttp
License
avew/retrofit-mask
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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