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

Function url

packages/http-recorder/src/redactor.ts:51–53  ·  view source on GitHub ↗
(options: UrlOptions = {})

Source from the content-addressed store, hash-verified

49}
50
51export const url = (options: UrlOptions = {}): Partial<Redactor> => ({
52 request: (snapshot) => ({ ...snapshot, url: redactUrl(snapshot.url, options.query, options.transform) }),
53})
54
55export const body = (transform: (parsed: unknown) => unknown): Partial<Redactor> => ({
56 request: (snapshot) => ({

Callers 2

makeFunction · 0.70
defaultsFunction · 0.70

Calls 1

redactUrlFunction · 0.70

Tested by

no test coverage detected