in pkg/api/api.go [301:309]
func (h *APIHandler) recordRequest(r *http.Request, body []byte) {
if cap(h.history) == 0 {
return
}
h.historyMu.Lock()
defer h.historyMu.Unlock()
h.history[h.historyIndex] = &RequestRecord{Method: r.Method, URI: r.URL.RequestURI(), Body: string(body)}
h.historyIndex = (h.historyIndex + 1) % cap(h.history)
}