def stream.open.br
import bend-kit-http@0.38.5.0/http.bend as Httpimport Base
import bend-kit-zlib@0.5.1.0/zlib.bend as Zlib
5197def stream.open.br(br: Bool, +c: String, st: Opened) -> IO(Opened):
5198 match br:
5199 case True{}:
5200 stream.open.add(st, Zlib.brotli.new())
5201 case False{}:
5202 stream.open.zstd(String.eq(c, "zstd"), st)