def stream.open.br

bend-kit-http@0.38.2.0 · http.bend:5205

import bend-kit-http@0.38.2.0/http.bend as Http
import Base
import bend-kit-zlib@0.5.0.0/zlib.bend as Zlib

5205def stream.open.br(br: Bool, +c: String, st: Opened) -> IO(Opened):
5206  match br:
5207    case True{}:
5208      stream.open.add(st, Zlib.brotli.new())
5209    case False{}:
5210      stream.open.zstd(String.eq(c, "zstd"), st)

Uses (8)

Used by (1)