https://kotlinlang.org logo
#ktor
Title
# ktor
a

alex

04/05/2018, 11:01 PM
what is the major difference between Ktor and http4k.org?
u

ultrabeto

09/25/2018, 9:52 PM
http4k vs ktor http4k -> Toolkit for serving and consuming HTTP services in a functional and consistent way. ktor -> Web backend framework for Kotlin. Easy to use, fun and asynchronous. Use Ktor (http://ktor.io/) for all projects.
c

christophsturm

09/26/2018, 10:00 AM
well, ktor is also consistent and functional
one main difference is that ktor uses coroutines and is non blocking while http4k is blocking for now.
d

dave

09/29/2018, 12:23 PM
in this case, "consistent" refers to the symmetric HttpHandler interface (actually a typealias) which is used to represent both server services and HTTP clients. Because of this symmetry, you can plug one into the other, which is really powerful - for example a unit test for a server endpoint can be reused as a test to a remote server by just switching out the HttpHandler with an HTTP client.
210 Views