HTTP Exchanges (httpexchanges)
The httpexchanges endpoint provides information about HTTP request-response exchanges.
Retrieving the HTTP Exchanges
To retrieve the HTTP exchanges, make a GET request to /actuator/httpexchanges, as shown in the following curl-based example:
$ curl 'http://localhost:8080/actuator/httpexchanges' -i -X GETThe resulting response is similar to the following:
HTTP/1.1 200 OK
Content-Type: application/vnd.spring-boot.actuator.v3+json
Content-Length: 511
{
  "exchanges" : [ {
    "timestamp" : "2022-12-22T13:43:41Z",
    "request" : {
      "uri" : "https://api.example.com",
      "method" : "GET",
      "headers" : {
        "Accept" : [ "application/json" ]
      }
    },
    "response" : {
      "status" : 200,
      "headers" : {
        "Content-Type" : [ "application/json" ]
      }
    },
    "principal" : {
      "name" : "alice"
    },
    "session" : {
      "id" : "0f5f89ad-7a48-4adb-9508-4fa32a953fc9"
    },
    "timeTaken" : "PT0.023S"
  } ]
}Response Structure
The response contains details of the traced HTTP request-response exchanges. The following table describes the structure of the response:
| Path | Type | Description | 
|---|---|---|
| 
 | 
 | An array of HTTP request-response exchanges. | 
| 
 | 
 | Timestamp of when the exchange occurred. | 
| 
 | 
 | Principal of the exchange, if any. | 
| 
 | 
 | Name of the principal. | 
| 
 | 
 | HTTP method of the request. | 
| 
 | 
 | Remote address from which the request was received, if known. | 
| 
 | 
 | URI of the request. | 
| 
 | 
 | Headers of the request, keyed by header name. | 
| 
 | 
 | Values of the header | 
| 
 | 
 | Status of the response | 
| 
 | 
 | Headers of the response, keyed by header name. | 
| 
 | 
 | Values of the header | 
| 
 | 
 | Session associated with the exchange, if any. | 
| 
 | 
 | ID of the session. | 
| 
 | 
 | Time taken to handle the exchange. |