class Builder
Build a new Retrofit.
Calling #baseUrl is required before calling #build(). All other methods are optional.
Builder() |
fun addCallAdapterFactory(factory: CallAdapter.Factory!): Retrofit.Builder!
Add a call adapter factory for supporting service method return types other than . |
|
fun addConverterFactory(factory: Converter.Factory!): Retrofit.Builder!
Add converter factory for serialization and deserialization of objects. |
|
fun baseUrl(baseUrl: URL!): Retrofit.Builder!fun baseUrl(baseUrl: String!): Retrofit.Builder!
Set the API base URL. fun baseUrl(baseUrl: HttpUrl!): Retrofit.Builder!
Set the API base URL. |
|
fun build(): Retrofit!
Create the |
|
fun callAdapterFactories(): MutableList<CallAdapter.Factory!>!
Returns a modifiable list of call adapter factories. |
|
fun callbackExecutor(executor: Executor!): Retrofit.Builder!
The executor on which |
|
fun callFactory(factory: Factory!): Retrofit.Builder!
Specify a custom call factory for creating |
|
fun client(client: OkHttpClient!): Retrofit.Builder!
The HTTP client used for requests. |
|
fun converterFactories(): MutableList<Converter.Factory!>!
Returns a modifiable list of converter factories. |
|
fun validateEagerly(validateEagerly: Boolean): Retrofit.Builder!
When calling |