( schema: Schema.ConstraintDecoder<A, RD>, options?: ParseOptions | undefined )
| 243 | * @since 4.0.0 |
| 244 | */ |
| 245 | export const schemaBodyJson = <A, RD>( |
| 246 | schema: Schema.ConstraintDecoder<A, RD>, |
| 247 | options?: ParseOptions | undefined |
| 248 | ): Effect.Effect<A, HttpServerError | Schema.SchemaError, HttpServerRequest | RD> => { |
| 249 | const parse = HttpIncomingMessage.schemaBodyJson(schema, options) |
| 250 | return Effect.flatMap(HttpServerRequest, parse) |
| 251 | } |
| 252 | |
| 253 | const isMultipart = (request: HttpServerRequest) => |
| 254 | request.headers["content-type"]?.toLowerCase().includes("multipart/form-data") === true || |
nothing calls this directly
no outgoing calls
no test coverage detected