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

Function http

packages/http-recorder/src/effect.ts:16–25  ·  view source on GitHub ↗
(name: string, options: RecorderOptions = {})

Source from the content-addressed store, hash-verified

14 * cassettes are replayed, and `CI=true` makes a missing cassette fail.
15 */
16export const http = (name: string, options: RecorderOptions = {}): Layer.Layer<HttpClient.HttpClient> =>
17 recordingLayer(name, {
18 metadata: options.metadata,
19 redactor: make(options.redact),
20 match: options.match,
21 }).pipe(
22 Layer.provide(CassetteService.fileSystem({ directory: options.directory })),
23 Layer.provide(FetchHttpClient.layer),
24 Layer.provide(NodeFileSystem.layer),
25 )

Callers

nothing calls this directly

Calls 2

recordingLayerFunction · 0.70
makeFunction · 0.70

Tested by

no test coverage detected