(schema: Schema.Constraint)
| 1594 | } |
| 1595 | |
| 1596 | function toBodyCodec(schema: Schema.Constraint): Schema.Top { |
| 1597 | return fromArrayBuffer(schema).pipe(Schema.decodeTo( |
| 1598 | HttpApiSchema.getResponseEncoding(schema.ast)._tag === "FormUrlEncoded" |
| 1599 | ? Schema.toCodecArrayFromSingle(schema) |
| 1600 | : schema |
| 1601 | )) |
| 1602 | } |
| 1603 | |
| 1604 | function fromArrayBuffer(schema: Schema.Constraint): Schema.Top { |
| 1605 | const encoding = HttpApiSchema.getResponseEncoding(schema.ast) |
no test coverage detected