Is it possible to add an Authentication header to the RPC client?
Like this:
// App.kt
suspend fun setupRPC(): NewsService = client.rpc {
url {
host = DEV_SERVER_HOST
port = 8080
encodedPath = "/api"
}
headers {
append(HttpHeaders.Authorization, "Basic YWRtaW46YWRtaW4=")
}
rpcConfig {
serialization {
json { }
}
}
}.withService()
I tried this, and the header is not being added to the requests.

If this is not the correct functionality, is the work-around to send the authentication along with the RPC calls as a parameter?