Does anyone know if there is a framework for Kotli...
# javascript
h
Does anyone know if there is a framework for KotlinJS HTTP Request Mangement? For testing I build every Request myself and directly handle it, but some kind of Interceptor/Chain Handling would be nice.
c
maybe #ktor ?
h
Hey, sorry I meant for outgoing requests, or can ktor do that too?
c
yes
h
Oh I wasn't aware. Thanks I'll look into it.
c
I personally would stick to the fetch api, but I think ktor can do it and maybe its great, havent looked for a long time.
h
Thank you, I'll see what it can do. I hoped for something that abstracts the request process somewhat and let's me chain some response handlers back to back. Like one looks into the response and if it's an error throws a specific Exception or maybe even a custom response type that get's modified downstream. Or one that checks if the auth token is still valid before sending the request. But I guess that's too specific. I might have to build it myself.
c
ktor does have a concept of pipelines and interceptors.
h
Great. Thank you.