목록2024/02/29 (1)
Hanbit the Developer
Retrofit2 Implementation(2): Top-Down from Retrofit.Builder().build()
Usage Retrofit을 생성하는 데 자주 사용되는 가장 기본적인 코드입니다. Retrofit.Builder() .baseUrl(baseUrl) .client(okHttpClient) .addConverterFactory(GsonConverterFactory.create()) .build() Retrofit2.java Retrofit.Builder 빌더에는 다음과 같은 프로퍼티가 있습니다. public static final class Builder { private final Platform platform; private @Nullable okhttp3.Call.Factory callFactory; private @Nullable HttpUrl baseUrl; private final List c..
Android
2024. 2. 29. 17:48