Ktorfit

class Ktorfit

Main class for Ktorfit, create the class than use the create() function.

Constructors

Ktorfit
Link copied to clipboard
fun Ktorfit(baseUrl: String, httpClient: <ERROR CLASS> = HttpClient())

Types

Builder
Link copied to clipboard
class Builder

Builder class for Ktorfit.

Properties

baseUrl
Link copied to clipboard
val baseUrl: String
httpClient
Link copied to clipboard
val httpClient: <ERROR CLASS>
responseConverters
Link copied to clipboard
val responseConverters: Set<ResponseConverter>

Extensions

create
Link copied to clipboard
inline fun <T> Ktorfit.create(): T

This will make IntelliJ think that this function exists. The real implementation will be generated by the KSP plugin Ktorfit will return an implementation of type T for a requested interface