title: Get response and raw request when using proxies and resteasy client side framework 3.0.4
body: <pre><code>// Some setup steps
  ResteasyProviderFactory factory = new ResteasyProviderFactory();
  factory.registerProvider(com.fasterxml.jackson.jaxrs.json.JacksonJsonProvider.class);
  
  Client client = ClientBuilder.newClient(new ClientConfiguration(factory));
  
  WebTarget target = client.target(webappURL.toURI() + "api/v1");
  resteasyWebTarget = (ResteasyWebTarget) target;
  
  
  // the real request
  MyApiController myApiController = resteasyWebTarget.proxy(MyApiController.class);
  ClientResponse response = (ClientResponse) myApiController.doSomeStuff();
  </code></pre>
  
  <p>The code above works great, but I want to really know what is going on in terms of real http request and real http response when </p>
  
  <blockquote>
    <p>myApiController.doSomeStuff();</p>
  </blockquote>
  
  <p>is executed.</p>
  
  <p>I am wondering what the best way is to catch and log the "raw" request and a catch and log the "raw" http response. I am only interested in solutions for resteasy-client 3.0.2.Final or similar...</p>
  
  <p>Thanks!</p>