HTTP 交换 (httpexchanges)
原文:https://docs.spring.io/spring-boot/api/rest/actuator/httpexchanges.html
httpexchanges 端点提供 HTTP 请求-响应交换的信息。
检索 HTTP 交换
向 /actuator/httpexchanges 发出 GET 请求:
$ curl 'http://localhost:8080/actuator/httpexchanges' -i -X GET
响应包含 exchanges 列表,每个交换包含 timestamp、request(方法、URI、头等)和 response(状态、头等)。默认存储最后 100 个交换,需要 HttpExchangeRepository bean。