def stream.open.br

bend-kit-http@0.38.5.0 · http.bend:5197

import bend-kit-http@0.38.5.0/http.bend as Http
import 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)

Uses (8)

Used by (1)