def literal.decoded
import bend-kit-http2@0.4.0.0/hpack.bend as Hpackimport Base
import bend-kit-bytes@0.3.3.0/bytes.bend as Bytes
import bend-kit-http2@0.4.0.0/huffman.bend as Huff
229def literal.decoded(huff: Bool, b: Bytes.Bytes) -> Maybe<&2, String>:
230 match huff:
231 case True{}:
232 Huff.decode(b)
233 case False{}:
234 Some{Bytes.to_string(b)}