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

Dias

10/12/2018, 1:25 PM
Hey, I cannot find the way to configure MockEngine for testing http client. I want to use features along with a mock engine, but I cannot find the way to do it. this way:
Copy code
HttpClient(MockEngine) {
            install(JWTAuth) {

            }
        }
doesn't allow to set up the engine itself. While setting up MockEngine and passing the instance to http client doesn't allow me to install the feature
e

e5l

10/12/2018, 1:37 PM
It looks like you're using server
JWTAuth
feature in client 🙂
d

Dias

10/12/2018, 1:41 PM
nah, that's my own feature
that I made for client
d

Dias

10/12/2018, 2:15 PM
cool, that's very helpful, thank you
I wish there was more docs on it
7 Views