(ctx context.Context, req *capturedRequest, resp *capturedResponse, durationMs float64, proxyErr string)
| 206 | } |
| 207 | |
| 208 | func (s *proxyServer) storeEvent(ctx context.Context, req *capturedRequest, resp *capturedResponse, durationMs float64, proxyErr string) { |
| 209 | inc := buildHTTPDumpEvent(req, resp, durationMs, proxyErr) |
| 210 | if err := s.eventService.HandleIncoming(ctx, inc); err != nil { |
| 211 | slog.Error("proxy: failed to store event", "err", err) |
| 212 | } |
| 213 | } |
| 214 | |
| 215 | func (s *proxyServer) certForHost(host string) (*tls.Certificate, error) { |
| 216 | if cached, ok := s.certCache.Load(host); ok { |
no test coverage detected