MCPcopy Index your code
hub / github.com/Effect-TS/effect / payloadSchemaBody

Function payloadSchemaBody

packages/platform/src/HttpApiClient.ts:525–528  ·  view source on GitHub ↗
(schema: Schema.Schema.All)

Source from the content-addressed store, hash-verified

523const HttpBodyFromSelf = Schema.declare(HttpBody.isHttpBody)
524
525const payloadSchemaBody = (schema: Schema.Schema.All): Schema.Schema<any, HttpBody.HttpBody> => {
526 const members = schema.ast._tag === "Union" ? schema.ast.types : [schema.ast]
527 return Schema.Union(...members.map(bodyFromPayload)) as any
528}
529
530const bodyFromPayloadCache = globalValue(
531 "@effect/platform/HttpApiClient/bodyFromPayloadCache",

Callers 1

onEndpointFunction · 0.85

Calls 1

mapMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…