/a></div><figcaption>HTTPS traffic to external services, with TLS originated by the microservice vs. by the sidecar proxy</figcaption></figure><p>Here is how both patterns are supported in the
<a href=https://raw.githubusercontent.com/istio/istio/release-1.9/samples/bookinfo/src/details/details.rb>Bookinfo details microservice code</a>, using the Ruby
<a href=https://docs.ruby-lang.org/en/2.0.0/Net/HTTP.html>net/http module</a>:</p><pre><code class=language-ruby data-expandlinks=true data-repo=istio>uri = U