https://kotlinlang.org logo
Title
t

trc

02/02/2023, 9:34 PM
Is there an arrow http client or do people wrap e.g. ktor?
a

Andromadus Naruto

02/03/2023, 4:16 AM
No, there isn't. However, I do wrap my API calls with
Either
. 👍🏾
p

phldavies

02/03/2023, 8:27 AM
There's https://github.com/arrow-kt/arrow-endpoint but I'm not sure about it's status as a project
s

simon.vergauwen

02/03/2023, 8:59 AM
arrow-endpoint has not been actively being worked on in quite some time, it also doesn't offer any concrete http clients. I typically prefer working with Ktor, but you can use Arrow in combination with any existing framework quite easily. There is https://github.com/arrow-kt/arrow/tree/main/arrow-libs/core/arrow-core-retrofit which offers some Retrofit adapters for Arrow Core.
t

trc

02/03/2023, 10:19 AM
Thanks everyone
k

Kristian Nedrevold

02/03/2023, 7:39 PM
Arrow-endpoint looks interesting. I'm guessing it would be quite easy to generate openAPI spec from it?
s

simon.vergauwen

02/03/2023, 8:20 PM
Yes, it is