p>The <a href=https://github.com/istio/istio/blob/release-1.24/samples/bookinfo/src/reviews/reviews-application/src/main/java/application/rest/LibertyRestEndpoint.java#L186>reviews application</a> (Java) does something similar using <code>requestHeaders</code>:</p><pre><code class=language-java data-expandlinks=true data-repo=istio>@GET
@Path(&#34;/reviews/{productId}&#34;)
public Response bookReviewsById(@PathParam(&#34;productId&#34;) int productId, @Context HttpHeaders requestHeaders) {

  // ...

  if (