Android代码 retrofit2 synchronous adapter
Retrofit 2 Synchronous Adapter A synchronous CallAdapter.Factory implementation for Retrofit 2. This project brings Retrofit 1's synchronous usage to Retrofit 2. Usage // Setup retrofit Retrofit retrofit = new Retrofit.Builder() .baseUrl("https://api.example.com") .addCallAdapterFactory(SynchronousCallAdapterFactory.create()) .build(); // Create your service interface Service { @GET("/") ApiResponse response(); // Return type directly @GET("/") Response responseApi(
文件列表
Android代码-retrofit2-synchronous-adapter.zip
(预估有个28文件)
retrofit2-synchronous-adapter-master
gradlew
6KB
settings.gradle
51B
.gitattributes
115B
.buildscript
deploy-snapshot.sh
591B
src
test
java
com
暂无评论