def cache.one.dispatch
emerging-ezhttp@0.21.0.0 · src/cache.bend:110
import emerging-ezhttp@0.21.0.0/src/cache.bend as Cache
import Base
import emerging-ezhttp@0.21.0.0/src/http.bend as Http
110
111def cache.one.dispatch(c: Cc, +piece: String, cut: Http.Cut) -> Cc:
112 match cut:
113 case Http.NoCut{}:
114 cache.one.flag(c, String.to_lower(String.trim(piece)))
115 case Http.Cut{+before, after}:
116 +name = String.to_lower(String.trim(before))
117 cache.one.store(c, name, String.trim(after), String.eq(name, "no-store"))