def ce.apply.gz

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

import bend-kit-http@0.38.5.0/http.bend as Http
import Base
import bend-kit-bytes@0.3.3.0/bytes.bend as Bytes
import bend-kit-zlib@0.5.1.0/zlib.bend as Zlib

4080def ce.apply.gz(on: Bool, +c: String, b: Bytes.Bytes) -> Dec:
4081  match on:
4082    case True{}:
4083      ce.of(Zlib.gunzip(b))
4084    case False{}:
4085      ce.apply.de(String.eq(c, "deflate"), c, b)

Uses (8)

Used by (1)