<@U0F3291QE> and <@U25U0KPFT> are you sure that t...
# tornadofx
n
@edvin and @carlw are you sure that the extension function you posted would work.. because you can only add headers to the request/response and not to the engine it self.. so something like that would work?
Copy code
fun Rest.setOAuthToken(accessToken: String) {
    engine.authInterceptor = { request -> request.addHeader("token", accessToken) }
}
And we probably should rename
engine
to
request
in
Rest.HttpURLEngine.autInterceptor
since the lambda gets an request passed in and not a engine?