I have a use case for this in zio-http and after talking to @jdegoes will impl this in zio since it seems like a generic solution