MCPcopy Create free account
hub / github.com/buggregator/server / storeEvent

Method storeEvent

modules/proxy/server.go:208–213  ·  view source on GitHub ↗
(ctx context.Context, req *capturedRequest, resp *capturedResponse, durationMs float64, proxyErr string)

Source from the content-addressed store, hash-verified

206}
207
208func (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
215func (s *proxyServer) certForHost(host string) (*tls.Certificate, error) {
216 if cached, ok := s.certCache.Load(host); ok {

Callers 1

proxyAndRecordMethod · 0.95

Calls 2

buildHTTPDumpEventFunction · 0.85
HandleIncomingMethod · 0.65

Tested by

no test coverage detected