Compile errors¶
By default, Ktorfit will throw compile error when it finds conditions under which it can’t ensure that it will work correct. You can set an KSP argument to change this:
ksp {
arg("Ktorfit_Errors", "1")
}
You can set it in your build.gradle.kts file,
0: Turn off all Ktorfit related error checking
1: Check for errors
2: Turn errors into warnings
Add your own Ktor client¶
You can set your Ktor client instance to the Ktorfit builder:
val myClient = HttpClient()
val ktorfit = Ktorfit.Builder().httpClient(myClient).build()
Last update: March 2, 2023