MCPcopy Index your code
hub / github.com/anomalyco/opencode / openSnapshot

Function openSnapshot

packages/http-recorder/src/socket.ts:114–117  ·  view source on GitHub ↗
(request: WebSocketRequest, redactor: Redactor)

Source from the content-addressed store, hash-verified

112 )
113
114const openSnapshot = (request: WebSocketRequest, redactor: Redactor) => {
115 const snapshot = redactor.request({ method: "GET", url: request.url, headers: request.headers ?? {}, body: "" })
116 return { url: snapshot.url, headers: snapshot.headers }
117}
118
119const makeRecordingSocket = (
120 upstream: Socket.Socket,

Callers 2

makeRecordingSocketFunction · 0.70
makeReplaySocketFunction · 0.70

Calls 1

requestMethod · 0.45

Tested by

no test coverage detected