HttpModule

@Module
object HttpModule

Http相关注入

Author

Jenly

Follow me

Functions

Link copied to clipboard
@Singleton
@Provides
fun provideClientBuilder(): OkHttpClient.Builder
Link copied to clipboard
@Singleton
@Provides
fun provideConfig(builder: Config.Builder, options: AppliesOptions.ConfigOptions?): Config
Link copied to clipboard
@Singleton
@Provides
fun provideConfigBuilder(): Config.Builder
Link copied to clipboard
@Singleton
@Provides
fun provideGson(builder: GsonBuilder, options: AppliesOptions.GsonOptions?): Gson
Link copied to clipboard
@Singleton
@Provides
fun provideGsonBuilder(): GsonBuilder
Link copied to clipboard
@Singleton
@Provides
fun provideOkHttpClient(builder: OkHttpClient.Builder, config: Config, options: AppliesOptions.OkHttpClientOptions?): OkHttpClient
Link copied to clipboard
@Singleton
@Provides
fun provideRetrofit(builder: Retrofit.Builder, options: AppliesOptions.RetrofitOptions?): Retrofit
Link copied to clipboard
@Singleton
@Provides
fun provideRetrofitBuilder(httpUrl: HttpUrl, client: OkHttpClient, gson: Gson, config: Config): Retrofit.Builder