MCPcopy Create free account
hub / github.com/anomalyco/opencode / defaults

Function defaults

packages/http-recorder/src/redactor.ts:129–135  ·  view source on GitHub ↗
(overrides: DefaultRedactorOverrides = {})

Source from the content-addressed store, hash-verified

127}
128
129export const defaults = (overrides: DefaultRedactorOverrides = {}): Redactor =>
130 compose(
131 requestHeaders(overrides.requestHeaders),
132 responseHeaders(overrides.responseHeaders),
133 url(overrides.url),
134 ...(overrides.body ? [body(overrides.body)] : []),
135 )

Callers

nothing calls this directly

Calls 5

requestHeadersFunction · 0.85
responseHeadersFunction · 0.85
composeFunction · 0.70
urlFunction · 0.70
bodyFunction · 0.70

Tested by

no test coverage detected