How to implement STTP SSL requests with HttpClientZioBackend? (SCALA/ZIO)

418 views Asked by At

I am using SttpAPI to send http requests, for one of my requests I need to use mutual SSL and i'm failing to find instructions how to implement it.

My backend is HttpClientZioBackend and there is no documentation for customizing the SSL Context for this kind of backend.

I will appreciate any help or samples.

1

There are 1 answers

0
ori888 On

val httpClient: HttpClient = HttpClient.newBuilder().sslContext(ssl).build() HttpClientZioBackend.usingClient(client = httpClient, ...)