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

Function redactedErrorRequest

packages/http-recorder/src/internal-effect.ts:78–86  ·  view source on GitHub ↗
(request: HttpClientRequest.HttpClientRequest)

Source from the content-addressed store, hash-verified

76 )
77
78export const redactedErrorRequest = (request: HttpClientRequest.HttpClientRequest) =>
79 HttpClientRequest.makeWith(
80 request.method,
81 redactUrl(request.url),
82 UrlParams.empty,
83 Option.none(),
84 Headers.empty,
85 HttpBody.empty,
86 )
87
88const transportError = (request: HttpClientRequest.HttpClientRequest, description: string) =>
89 new HttpClientError.HttpClientError({

Callers 2

transportErrorFunction · 0.85

Calls 1

redactUrlFunction · 0.70

Tested by

no test coverage detected