MCPcopy Create free account
hub / github.com/Effect-TS/effect / getStreamSuccessSchemas

Function getStreamSuccessSchemas

packages/effect/src/http-api/HttpApiClient.ts:1397–1406  ·  view source on GitHub ↗
(endpoint: HttpApiEndpoint.Top)

Source from the content-addressed store, hash-verified

1395}
1396
1397function getStreamSuccessSchemas(endpoint: HttpApiEndpoint.Top): Array<StreamSuccessSchema> {
1398 const schemas: Array<StreamSuccessSchema> = []
1399 for (const schema of endpoint.success) {
1400 const body = HttpApiSchema.isWithHeaders(schema) ? schema.schema : schema
1401 if (HttpApiSchema.isStreamSchema(body)) {
1402 schemas.push(schema as StreamSuccessSchema)
1403 }
1404 }
1405 return schemas
1406}
1407
1408function streamToResponse(
1409 successSchema: StreamSuccessSchema,

Callers 1

HttpApiClient.tsFile · 0.85

Calls 1

pushMethod · 0.65

Tested by

no test coverage detected