fetch[A](req: F[Request[F]])
method would only evaluate the request when it is ready to be sent, but that does not appear to be the case. Is that correct / expected? Do I have any other options to solve that?
Stream
of requests and using its concurrency controls may be worth exploring as well.
getDefault
throws, it just defers the explosion until the first https call. But the reason it's there is that it gives people who know that getDefault
throws a chance to override it. The crucial point is that getDefault
not appear as a default argument. That's why we've gotten that bug filed ... twice.
Some(sslContext.getDefault)
is the right choice for most people.