def ce.apply.gz

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

import bend-kit-http@0.38.2.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.0.0/zlib.bend as Zlib

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

Uses (8)

Used by (1)