title: Provide the actual HTTP GET request within the response
body: <p>I would like to provide the actual get request in a response. I am free to choose between placing that information into the header or the body of the response.
  The current project setup includes: </p>
  
  <ul>
  <li>Nginx as reverse proxy</li>
  <li>Spring boot application </li>
  </ul>
  
  <p>which are potential candidates to put in that logic.</p>
  
  <p>Request:</p>
  
  <pre><code>GET http://localhost/api/users/2/photos/2
  </code></pre>
  
  <p>Response:</p>
  
  <pre><code>BODY {"some": "values",
  "_request": "GET http://localhost/api/users/2/photos/2"}
  </code></pre>
  
  <p>or</p>
  
  <pre><code>HEADERS "custom-header-get-request": "GET http://localhost/api/users/2/photos/2"
  BODY {"some": "values"}
  </code></pre>
  
  <p>I can easily add the information to the response of each Responseobject within the Controllers of the spring boot application. This approach is quite cumbersome, as it leads to a lot of codechanges and allways needs to be in mind that each Controller should take care of providing the requestinformation to the response, achieving the first solution.</p>
  
  <p>Which other options do i have? </p>