zio / zio-http

A next-generation Scala framework for building scalable, correct, and efficient HTTP clients and servers
https://zio.dev/zio-http
Apache License 2.0
800 stars 403 forks source link

Add Route#handleErrorRequestZIO #3159

Open mschuwalow opened 1 month ago

mschuwalow commented 1 month ago

Is your feature request related to a problem? Please describe. Not related to an usecase, but I noticed that handleErrorRequest is the only error handling function that does not have a ZIO counterpart. I propose adding it for symmetry and ocd purposes.

Describe the solution you'd like Add a Route#handleErrorRequestZIO that is similiar to Route#handleErrorRequest, but allow passing a function producing a zio effect.