Is there an arrow http client or do people wrap e....
# arrow
t
Is there an arrow http client or do people wrap e.g. ktor?
a
No, there isn't. However, I do wrap my API calls with
Either
. 👍🏾
p
There's https://github.com/arrow-kt/arrow-endpoint but I'm not sure about it's status as a project
s
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
Thanks everyone
k
Arrow-endpoint looks interesting. I'm guessing it would be quite easy to generate openAPI spec from it?
s
Yes, it is
131 Views